LoneRobot
08-17-2008, 11:28 AM
hi everyone,
posted this as im not sure if it's a bug or my coding. I am trying to set the time on a daylight system for a render pass utility. in the mxs help it says -
To access the controller, create a Daylight system using the Create>Systems tab in the UI and use: $daylight01.controller
this gives acces to a sunanim called solar time which is, i quote "The solar time expressed as an integer value of seconds since midnight. To calculate the hours, minutes and seconds, you can use the following function etc"
when i attempt to get the time it returns odd results. for example if i manually set the time to 14hours:23mins:32secs, typing $Daylight01.controller.solar_time yields 15??
it seems to return a rounded integer of the hour, not the seconds since midnight. anyone else get any joy with this?
posted this as im not sure if it's a bug or my coding. I am trying to set the time on a daylight system for a render pass utility. in the mxs help it says -
To access the controller, create a Daylight system using the Create>Systems tab in the UI and use: $daylight01.controller
this gives acces to a sunanim called solar time which is, i quote "The solar time expressed as an integer value of seconds since midnight. To calculate the hours, minutes and seconds, you can use the following function etc"
when i attempt to get the time it returns odd results. for example if i manually set the time to 14hours:23mins:32secs, typing $Daylight01.controller.solar_time yields 15??
it seems to return a rounded integer of the hour, not the seconds since midnight. anyone else get any joy with this?
