Download

Trying to control the SunSky time of day with UI slider

Hello.

I’m trying to control the time of day and the corresponding sun position in the SunSky system with a UI slider.

I’m following this official tutorial, but it doesn’t work for the current SunSky system.


That’s because map range clamped has “in range A” and “in range B” both set to zero.
And even if those were set to 0 and 1 you would still update solar time variable to a range of 0.6 to 11.
In the tutorial he sets variable hour from 7 to 20.
Edited : that would make the slider go from midnight to 11 am.

1 Like

Aha! Thank you so much! Ironically, the range mapper my most trusted companion in C4D xpresso scripting. Will update and try again.