Difference between revisions of "IC Python API:RLPy RGlobal"

From Reallusion Wiki!
Jump to: navigation, search
m (Member Functions)
m (Member Functions)
Line 22: Line 22:
 
def RLPy.RGlobal.GetProjectLength()
 
def RLPy.RGlobal.GetProjectLength()
 
</syntaxhighlight>
 
</syntaxhighlight>
|The the length of the project in milliseconds.
+
|Get the length of the project in milliseconds.
 
|<div class="toccolours mw-collapsible mw-collapsed">
 
|<div class="toccolours mw-collapsible mw-collapsed">
 
Fetch the current frame time in milliseconds:
 
Fetch the current frame time in milliseconds:

Revision as of 22:33, 24 January 2019

Main article: System Module.

Class in RLPy / Inherits from: _object

Description

This class provides many of the common API global functions.

Member Functions

Function Syntax Description Examples
GetProjectLength
def RLPy.RGlobal.GetProjectLength()
Get the length of the project in milliseconds.

Fetch the current frame time in milliseconds:

import RLPy

# Put the current frame time into a variable.
time = RLPy.RGlobal.GetTime()

# Return the current frame time in milliseconds.
print(time.GetValue())
GetFps
def RLPy.RGlobal.GetFps()
Get frames per second.

Get the project frames per second.

import RLPy
# Get frames per second
print(RLPy.RGlobal.GetFps())

#60