IC8 Python API:RLPy RVisemeKey

From Reallusion Wiki!
Jump to: navigation, search

Description

RVisemeKey is used to store the Viseme ID and Weight (influence over the motion). Available VisemeIDs: NONE = 0, EE = 1, ER = 2, IH = 3, AH = 4, OH = 5, W_OO = 6, S_Z = 7, CH_J = 8, F_V = 9, TH = 10, T_L_D_N = 11, B_M_P = 12, AE = 14, R = 15, K_G_H_NG = 13 See also: RIVisemeComponent

Constructor & Destructor

__init__ (self, *args)

Create a new Viseme Key.

Parameters

  • args

Member Functions

Clone (self)

Duplicate the Key data and return a new object.

GetID (self)

Get the Key's ID.

GetWeight (self)

Get viseme weight of the key.

SetID (self, eID)

Set viseme ID of the key.

Parameters

  • eID

SetWeight (self, fValue)

Set weight of the key.

Parameters

  • fValue

Sample code

Calls `RLPy.RVisemeKey.SetWeight` with the inputs shown in the example.

def run_script():
    import RLPy
    key = RLPy.RVisemeKey()
    key.SetWeight(50)

Properties

thisown

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