IC Python API:RLPy RFloatKey

From Reallusion Wiki!
Jump to: navigation, search

Main article: Modules. Last modified: 04/10/2020

Description

This class is used to store and access float data keys. Float keys are managed by RFloatControl via SetValue and GetValue for setting and getting the key value for the corresponding point in time.

See Also: RKey, RFloatControl

Inheritance

RKey > RFloatKey

1 avatar_list = RLPy.RScene.GetAvatars()
2 avatar = avatar_list[0]
3  
4 # set value
5 float_control = avatar.GetControl("PathPosition")
6 value = 1
7 
8 float_control.SetValue(RLPy.RTime(100),value)
9 print(float_control.GetValue(time,value))

Member Functions

Clone ( self )

Copy the float key data and return as a new float key object.

1 # Clone RFloatKey
2 cloned_key = float_key.Clone()

GetValue ( self )

Get the float key value.

See Also: SetValue

Returns

The float key value - float

1 value = float_key.GetValue()

SetValue ( self, fValue )

Set the float key value.

See Also: GetValue

Parameters

fValue [IN] The value for the Key - float

1 float_key.SetValue(99.9)