IC Python API:RLPy RIMorphComponent
- Main article: Modules.
Inheritance
This class inherits public member functions from:
Detailed Description
RIMorphComponent.
( Experimental Class )avatar_list = RLPy.RScene.GetAvatars()
morph_component = avatar_list[0].GetMorphComponent()
result = morph_component.AddKey( "your_mesh_name", "your_morph_name", RLPy.RTime(67), 0.5, False, False )
f_ret_weight = 0
return_list = morph_component.GetWeight( "your_mesh_name", "your_morph_name", RLPy.RTime(67), f_ret_weight )
f_ret_weight = return_list[1]
print(f_ret_weight) # is 0.5
result = morph_component.RemoveAllKeys("your_mesh_name", "your_morph_name")
morph_names = morph_component.GetMorphNames("your_mesh_name")
Member Functions
AddKey
RLPy.RIMorphComponent.AddKey ( self, strMeshName, strMorphName, kTime, fWeight, bSendEvent, bPauseAP )
Add a morph key by morph name. ( Experimental API )
Parameters
strMeshName [IN] The name of mesh - string
strMorphName [IN] The name of morph target for the specified mesh name - string
kTime [IN] The time at which to add the key - RLPy.RTime
fWeight [IN] The weight for morph target - float
bSendEvent [IN] send event after add key - bool
bPauseAP [IN] pause AP after add key - bool
Return Values
RLPy.RStatus.Success Success
RLPy.RStatus.Failure Fail
GetMorphNames
RLPy.RIMorphComponent.GetMorphNames ( self, strMeshName )
Get all morph target names from mesh. ( Experimental API )
Parameters
strMeshName [IN] The name of mesh - string
Return Values
names of morph
GetWeight
RLPy.RIMorphComponent.GetWeight ( self, strMeshName, strMorphName, kTime, fWeight )
Get a morph target weight from morph animation. ( Experimental API )
Parameters
strMeshName [IN] The name of mesh - string
strMorphName [IN] The name of morph target for the specified mesh name - string
kTime [IN] The time at which to get the weight - RLPy.RTime
fWeight [OUT] Returns the weight value for the specified morph name - float
Return Values
RLPy.RStatus.Success Success
RLPy.RStatus.Failure Fail
RemoveAllKeys
RLPy.RIMorphComponent.RemoveAllKeys ( self, strMeshName, strMorphName )
Removes all keys by morph name. ( Experimental API )
Parameters
strMeshName [IN] The name of mesh - string
strMorphName [IN] The name of morph target - string
Return Values
RLPy.RStatus.Success Success
RLPy.RStatus.Failure Fail