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

From Reallusion Wiki!
Jump to: navigation, search
m (Member Functions)
m (Member Functions)
Line 34: Line 34:
 
# Return the current frame time in milliseconds.
 
# Return the current frame time in milliseconds.
 
print(time.GetValue())
 
print(time.GetValue())
 +
</syntaxhighlight>
 +
</div>
 +
</div>
 +
|-
 +
|GetFps
 +
|<syntaxhighlight lang="Python">
 +
def RLPy.RGlobal.GetFps()
 +
</syntaxhighlight>
 +
|Get frames per second.
 +
|<div class="toccolours mw-collapsible mw-collapsed">
 +
 +
<div class="mw-collapsible-content">
 +
<syntaxhighlight lang="Python">
 +
 
</syntaxhighlight>
 
</syntaxhighlight>
 
</div>
 
</div>
 
</div>
 
</div>
 
|}
 
|}

Revision as of 19:16, 22 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 address of the dialog window.

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.