Hello there,
I got this script to calculate sunshine hours for certain
surfaces and it doesn't work on v5.5.
Here a few lines from the old script:
-- Cycle through day.
for t = sunrise, sunset do
set("time", t);
-- NOTE: This is deceptive as it is
-- actually EXPOSURE. Thus 0 = fully shaded
-- whilst 100 = completely unobstructed.
exposure = get("shading.shading");
-- OPTION ONE:
-- Use this line if you want fractional hours.
daylight_hours = daylight_hours + (exposure/100.0);
I suppose (but I'm not sure) that the command shading.shaded doesn't work in the new version anymore.
Is it just a new command or do I need to use a new script now?
Thanks for your help,
Tina

