IC Python API:RLPy RFloatControl

From Reallusion Wiki!
Jump to: navigation, search
Main article: Modules.

Inheritance

This class inherits public member functions from:

Detailed Description

RFloatControl controls simple floating point values.

avatar_list = RLPy.RScene.GetAvatars()
avatar = avatar_list[0]

# set value
float_control = avatar.GetControl("PathPosition")
value = 1
float_control.SetValue(RLPy.RTime(100),value)
print(float_control.GetValue(time,value))

Member Functions

GetValue

RLPy.RFloatControl.GetValue ( self, kTime, fValue )

Get key value by time.

Parameters

kTime [IN] Specifies the time to get value - RLPy.RTime

fValue [OUT] Value of the key - float

Return Values

RLPy.RStatus.Success Success

RLPy.RStatus.Failure Fail


SetValue

RLPy.RFloatControl.SetValue ( self, kTime, fValue )

Set key value by time.

Parameters

kTime [IN] Specifies the time to get value - RLPy.RTime

fValue [IN] Value of the key - float

Return Values

RLPy.RStatus.Success Success

RLPy.RStatus.Failure Fail