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

From Reallusion Wiki!
Jump to: navigation, search
(Created page with "== Detailed Description == This class is used to store and access float data keys. Float keys are managed by RFloatControl via #SetValu...")
 
m
 
Line 1: Line 1:
== Detailed Description ==
+
{{TOC}}
 +
{{Parent|IC_Python_API:RL_Python_Modules|Modules}}
 +
{{last_modified}}
 +
 
 +
== Description ==
  
 
This class is used to store and access float data keys. Float keys are managed by [[IC_Python_API:RLPy_RFloatControl|RFloatControl]] via [[#SetValue ( self, fValue )|SetValue]] and [[#GetValue ( self )|GetValue]] for setting and getting the key value for the corresponding point in time.
 
This class is used to store and access float data keys. Float keys are managed by [[IC_Python_API:RLPy_RFloatControl|RFloatControl]] via [[#SetValue ( self, fValue )|SetValue]] and [[#GetValue ( self )|GetValue]] for setting and getting the key value for the corresponding point in time.

Latest revision as of 02:16, 10 April 2020

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)