IC8 Python API:RLPy RBodySetting

From Reallusion Wiki!
Jump to: navigation, search

Contents

Description

This class is used to store the settings of body motion capture.

Constructor & Destructor

__init__ (self, *args)

copy constructor

Parameters

  • args

Member Functions

GetActivePart (self)

Get active part.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetCoordinateOffset (self, fRotation, vTranslation)

Get coordinate offset.

Parameters

  • fRotation
  • vTranslation

GetFixLowerState (self)

Get fix lower state.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetFootBottomToAnkle (self)

Get foot bottom to ankle.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetHipPositionLockedAxes (self)

Get hip position locked axes.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetLockFootRotationState (self)

Get lock foot rotation state.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetMirrorState (self)

Get mirror state.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetMotionApplyMode (self)

Get motion apply mode.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetMotionMatchSource (self)

Gets force motion match source enable state.

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

GetReferenceAvatar (self)

Get reference handle.

SetActivePart (self, eActivePart)

Set active part.

Parameters

  • eActivePart

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetCoordinateOffset (self, fRotation, vTranslation)

Set coordinate offset.

Parameters

  • fRotation
  • vTranslation

SetFixLowerState (self, bIsFixLower)

Set fix lower state.

Parameters

  • bIsFixLower

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetFootBottomToAnkle (self, fFootBottomToAnkle)

Set foot bottom to ankle.

Parameters

  • fFootBottomToAnkle

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetHipPositionLockedAxes (self, eAxes)

Set hip position locked axes.

Parameters

  • eAxes

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetLockFootRotationState (self, bIsLockFootRotation)

Set avatar active part.

Parameters

  • bIsLockFootRotation

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetMirrorState (self, bIsMirror)

Set mirror state.

Parameters

  • bIsMirror

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetMotionApplyMode (self, eMotionApplyMode)

Set motion apply mode.

Parameters

  • eMotionApplyMode

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetMotionMatchSource (self, bMatchSource)

Sets force motion match source.

Parameters

  • bMatchSource

Sample code

Demonstrates calls to `RLPy.RBodySetting.GetActivePart`, `RLPy.RBodySetting.GetFixLowerState`, `RLPy.RBodySetting.GetFootBottomToAnkle`, `RLPy.RBodySetting.GetHipPositionLockedAxes`, `RLPy.RBodySetting.GetLockFootRotationState`, `RLPy.RBodySetting.GetMirrorState`, `RLPy.RBodySetting.GetMotionApplyMode`, `RLPy.RBodySetting.GetMotionMatchSource`, `RLPy.RBodySetting.SetActivePart`, `RLPy.RBodySetting.SetFixLowerState`, `RLPy.RBodySetting.SetFootBottomToAnkle`, `RLPy.RBodySetting.SetHipPositionLockedAxes`, `RLPy.RBodySetting.SetLockFootRotationState`, `RLPy.RBodySetting.SetMirrorState`, `RLPy.RBodySetting.SetMotionApplyMode`, and `RLPy.RBodySetting.SetMotionMatchSource` using the example's inputs.

def run_script():
    import RLPy
    value = RLPy.RBodySetting()
    active = value.GetActivePart()
    value.SetActivePart(active)
    mirror = value.GetMirrorState()
    value.SetMirrorState(not mirror)
    assert value.GetMirrorState() is (not mirror)
    value.SetMirrorState(mirror)
    fix_lower = value.GetFixLowerState()
    value.SetFixLowerState(not fix_lower)
    assert value.GetFixLowerState() is (not fix_lower)
    value.SetFixLowerState(fix_lower)
    lock_rotation = value.GetLockFootRotationState()
    value.SetLockFootRotationState(not lock_rotation)
    assert value.GetLockFootRotationState() is (not lock_rotation)
    value.SetLockFootRotationState(lock_rotation)
    foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot + 0.25)
    changed_foot = value.GetFootBottomToAnkle()
    value.SetFootBottomToAnkle(foot)
    mode = value.GetMotionApplyMode()
    value.SetMotionApplyMode(mode)
    axes = value.GetHipPositionLockedAxes()
    value.SetHipPositionLockedAxes(axes)
    match = value.GetMotionMatchSource()
    value.SetMotionMatchSource(not match)
    assert value.GetMotionMatchSource() is (not match)
    value.SetMotionMatchSource(match)
    return (active, mirror, fix_lower, lock_rotation, foot, changed_foot, mode, axes, match)

SetReferenceAvatar (self, spAvatar)

Set reference avatar.

Parameters

  • spAvatar

Properties

active_part

Body part selected for the body-setting operation.

fix_lower_state

Indicates whether the lower-body state is fixed.

foot_bottom_to_ankle

Distance from the bottom of the foot to the ankle.

hip_position_locked_axes

Coordinate axes locked for hip positioning.

lock_foot_rotation_state

Indicates whether foot rotation is locked.

mirror_state

Indicates whether the body settings use mirrored state.

motion_apply_mode

Mode used to apply motion to the body.

thisown

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