Hi everyone :-)
This page on the wiki unfortunately has code that doesn't work:
https://wiki.reallusion.com/IC_8_Python_API:Dealing_With_Custom_FPS1 fps = RLPy.RGlobal.GetFps() # return RFps2 # convert to frame index3 frame_index = RLPy.GetFrameIndex(current_time, fps) 4 # convert to RTime 5 current_time = RLPy.IndexedFrameTime(frame_index, fps) 6 # time on frame7 frame_time = RLPy.RGlobal.GetFps().GetFrameTime( current_time )
The variable "current_time" on line 3 is undefined (at least in iClone 8.3) and I don't believe it's a built-in global variable of any type.
What is the correct way to convert the rFPS to usable integer or float values?
thanks
toby
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

virtualfilmer.com | youtube