Hello everyone,
I was trying to manipulate sun’s positioning from GH for the first time in Rh8, but I have noticed the latest updates for it. For instance, SetPosition is obsolete as written in the latest rhinocommon site. At the same time I couldn’t use other methods like setDirection or so.
Please, kindly let me know what I am missing within the code. I will write the code I am writing below:
import Rhino
from System import DateTime
date = DateTime(y, mon, d, h, mnt, 0)
sun = Rhino.RhinoDoc.ActiveDoc.Lights.Sun
sun.SunDirection(lat, lon, date)
sunVec = sun.Vector
And is there any other method or namespace to set date and time manually/parametrically?
Thanks,
Mehrzad