I’m trying to write a gh/python script to render multiple sun settings (dates) of a scene for a sun study. Ideally I’d like to input my dates to render and then have gh and vray do the rest.
I found a very useful C# component to access the sun through gh (link) but I’m not very familiar with C#. with python, I’m not able to loop over my list of date inputs and update the sun before I render, because the python script only updates its output once it completed the whole python component.
- Is it possible to update the python component output (date_out) in realtime, while looping over my list?
- Probably a better solution would be to access the Rhino sun directly through that same script. I tried sun.SetPosition(DT, float(LAT), float(LON)) but it always set the time to my system DateTime, I somehow never managed to use my input DateTime. (see screenshot. I don’t really understand the documentation…)
What am I missing?
Any help is much appreciated, thanks!
MSun_test.gh (18.6 KB)