How to enable/disable Rhino sun from Grasshopper(Set property)

HI all,

how can I enable the Rhino sun via GH?

file:rSun.gh (4.1 KB)

Thanks!

Untested, but you may have to access the document Sun via the lighttable:
http://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_DocObjects_Tables_LightTable_Sun.htm

Hi David,

thanks, I think I dont understand how to use it:

access like this
var sun = RhinoDoc.ActiveDoc.Lights.Sun;

Thanks @Will_Wang, will try it at home.

You might want to check out @DavidMans Rhino sun user object

Thanks always nice to know something new!