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

HI all,

how can I enable the Rhino sun via GH? (4.1 KB)


Untested, but you may have to access the document Sun via the lighttable:

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!