IC Python API:RLPy RTime

From Reallusion Wiki!
Revision as of 20:48, 13 January 2019 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules#System|System Module}} Class in RLPy / Inherits from:_object == Description == This class is used to hold and manipulate ti...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main article: System Module.

Class in RLPy / Inherits from:_object

Description

This class is used to hold and manipulate timing information.

Time is stored internally in system as milliseconds. Most API methods that require or return timing information do so through variables of this type. This class also provide methods to convert between Frame and RTime, such as GetFrameIndex() and IndexedFrameTime(). Use of GetFrameTime() can ensure that RTime is on the correct frame.

Member Functions

GetFrameIndex

def RLPy.RTime.GetFrameIndex(kTime, nFps)

Convert the current time to frame index.

Code:
 
import RLPy
#create a time object of 3 seconds
time = RLPy.RTime(3000)
print(RLPy.RTime.GetFrameIndex(time, RLPy.RGlobal.GetFps()))

GetStatusCode

def RLPY.RStatus.GetStatusCode(self)

IsError

def RLPY.RStatus.IsError(self)