IC8 Python API:RLPy RIMorphComponent

From Reallusion Wiki!
Jump to: navigation, search

Description

This class can edit morph animation keys and retrieve morph weights on a target Avatar or Prop. A specific mesh name must be provided for the functions of this class, because every mesh can carry multiple morph targets. This class can only be used with RIProp and RIAvatar.

Constructor & Destructor

__init__ (self, *args, **kwargs)

Initializes a new ri morph component instance.

Parameters

  • args
  • kwargs

Member Functions

AddKey (self, strMeshName, strMorphName, kTime, fWeight, bSendEvent, bPauseAP)

See also: RTime, RStatus, GetWeight

Parameters

  • strMeshName
  • strMorphName
  • kTime
  • fWeight
  • bSendEvent
  • bPauseAP

GetMorphNames (self, strMeshName)

Get all the morph target names for a given mesh on this morph component. See also: RIAvatar

Parameters

  • strMeshName

GetWeight (self, strMeshName, strMorphName, kTime, fWeight)

Get the morph target weight for a given mesh and morph name at the requested time on this morph component. See also: AddKey, RTime, RStatus

Parameters

  • strMeshName
  • strMorphName
  • kTime
  • fWeight

RemoveAllKeys (self, strMeshName, strMorphName)

Remove all morph keys for a given mesh and morph name on this morph component. See also: AddKey, RStatus

Parameters

  • strMeshName
  • strMorphName

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.