IC Python API:RLPy RFloatControl

From Reallusion Wiki!
Revision as of 02:11, 28 March 2019 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Inheritance== This class inherits public member functions from: *RLPy.RControl ==D...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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