IC8 Python API:RLPy RVisemeSmoothOption

From Reallusion Wiki!
Jump to: navigation, search

Description

This class is responsible for recording viseme smooth and strength settings for parts of the mouth: jaw, lips and tongue. These settings can be fed into a RIVisemeComponent using RIVisemeComponent.AddVisemeOptionClip().

Constructor & Destructor

__init__ (self)

Initializes a new viseme smooth option instance.

Member Functions

GetSmoothEnableSetting (self)

Get all the viseme smoothing states for the mouth parts. See Also: GetSmoothValueSetting

Sample code

Calls `RLPy.RVisemeSmoothOption.GetSmoothEnableSetting` with the inputs shown in the example.

def run_script():
    import RLPy
    # Get smooth enable state
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    enable_list = viseme_smooth_option.GetSmoothEnableSetting()
    print(enable_list[0])  # Jaw smooth enable status
    print(enable_list[1])  # Lips smooth enable status
    print(enable_list[2])  # Tongue smooth enable status

GetSmoothValueSetting (self)

Get all the viseme smoothing values for the mouth parts. See Also: GetSmoothEnableSetting

Sample code

Calls `RLPy.RVisemeSmoothOption.GetSmoothValueSetting` with the inputs shown in the example.

def run_script():
    import RLPy
    # Get smooth values
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    value_list = viseme_smooth_option.GetSmoothValueSetting()
    print(value_list[0])  # Jaw smooth value
    print(value_list[1])  # Lips smooth value
    print(value_list[2])  # Tongue smooth value

GetStrengthEnableSetting (self)

Get all the viseme strengthening states for the mouth parts. See Also: GetStrengthValueSetting

Sample code

Calls `RLPy.RVisemeSmoothOption.GetStrengthEnableSetting` with the inputs shown in the example.

def run_script():
    import RLPy
    # Get strength enable state
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    enable_list = viseme_smooth_option.GetStrengthEnableSetting()
    print(enable_list[0])  # Jaw strength enable status
    print(enable_list[1])  # Lips strength enable status
    print(enable_list[2])  # Tongue strength enable status

GetStrengthValueSetting (self)

Get all the viseme strength values for the mouth parts. See Also: GetStrengthEnableSetting

Sample code

Calls `RLPy.RVisemeSmoothOption.GetStrengthValueSetting` with the inputs shown in the example.

def run_script():
    import RLPy
    # Get strength values
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    value_list = viseme_smooth_option.GetStrengthValueSetting()
    print(value_list[0])  # Jaw strength value
    print(value_list[1])  # Lips strength value
    print(value_list[2])  # Tongue strength value

SetSmoothEnable (self, bJawEnable, bLipsEnable, bTongueEnable)

Enable/disable viseme smoothing for parts of the mouth.

Parameters

  • bJawEnable
  • bLipsEnable
  • bTongueEnable

Sample code

Calls `RLPy.RVisemeSmoothOption.SetSmoothEnable` with the inputs shown in the example.

def run_script():
    import RLPy
    # Set smooth enable
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    jaw_enable = False
    lips_enble = True
    tongue_enble = False
    viseme_smooth_option.SetSmoothEnable(jaw_enable, lips_enble, tongue_enble)

SetSmoothValue (self, fJaw, fLips, fTongue)

Set the viseme smoothing values for parts of the mouth. See Also: SetSmoothEnable

Parameters

  • fJaw
  • fLips
  • fTongue

Sample code

Calls `RLPy.RVisemeSmoothOption.SetSmoothValue` with the inputs shown in the example.

def run_script():
    import RLPy
    # Set strength value
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    jaw_value = 0.4
    lips_value = 0.2
    tongue_value = 0.7
    viseme_smooth_option.SetSmoothValue(jaw_value, lips_value, tongue_value)

SetStrengthEnable (self, bJawEnable, bLipsEnable, bTongueEnable)

Enable/disable viseme strengthening for parts of the mouth. See Also: SetStrengthValue

Parameters

  • bJawEnable
  • bLipsEnable
  • bTongueEnable

Sample code

Calls `RLPy.RVisemeSmoothOption.SetStrengthEnable` with the inputs shown in the example.

def run_script():
    import RLPy
    # Set strength enable
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    jaw_enable = True
    lips_enble = False
    tongue_enble = True
    viseme_smooth_option.SetStrengthEnable(jaw_enable, lips_enble, tongue_enble)

SetStrengthValue (self, fJaw, fLips, fTongue)

Set the viseme strength values for parts of the mouth.

Parameters

  • fJaw
  • fLips
  • fTongue

Sample code

Calls `RLPy.RVisemeSmoothOption.SetStrengthValue` with the inputs shown in the example.

def run_script():
    import RLPy
    # Set strength value
    viseme_smooth_option = RLPy.RVisemeSmoothOption()
    jaw_value = 0.4
    lips_value = 0.5
    tongue_value = 0.6
    viseme_smooth_option.SetStrengthValue(jaw_value, lips_value, tongue_value)

Properties

thisown

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