IC8 Python API:RLPy RDeviceSetting

From Reallusion Wiki!
Jump to: navigation, search

Description

This class is the device setting used in the device class, such as RBodyDevice and RHandDevice. Provide methods to set the coordinate system (Lefthand/Righthand),axis orientation(Up & Front), offset data(Rotation & Position offset) and setting data(RPositionSetting & RRotationSetting).

Constructor & Destructor

__init__ (self, *args)

Initializes a new device setting instance.

Parameters

  • args

Member Functions

GetAxisXYZ (self, eAxis)

Get vector of an axis.

Parameters

  • eAxis

GetCoordinateOffset (self, fRotation, vTranslation)

Get translation and rotation offset of the mocap coordinate.

Parameters

  • fRotation
  • vTranslation

GetCoordinateSystem (self)

Get coordinate system. ( Default value is ECoordinateSystem::RIGHT_HAND )

GetInitialHipRotation (self)

Gets intial hip rotation.

GetMocapCoordinateFrontAxis (self)

Get front-axis of mocap coordinate. ( Default value is ECoordinateAxis::NEGATIVE_Y )

GetMocapCoordinateSystem (self)

Get coordinate system of mocap coordinate. ( Default value is ECoordinateSystem::RIGHT_HAND )

GetMocapCoordinateUpAxis (self)

Get up-axis of mocap coordinate. ( Default value is ECoordinateAxis::Z )

GetPositionSetting (self)

Get position setting.

GetRotationSetting (self)

Get rotation setting.

SetCoordinateOffset (self, fRotation, vTranslation)

Set translation and rotation offset of the mocap coordinate.

Parameters

  • fRotation
  • vTranslation

SetCoordinateSystem (self, eCoordinateSystem)

Set coordinate system.

Parameters

  • eCoordinateSystem

SetInitialHipRotation (self, kInitialHipRotation)

It only needs to be set if the Hip default orientation is different from the world coordinate orientation.

Parameters

  • kInitialHipRotation

SetMocapCoordinate (self, eUpAxis, eFrontAxis, eCoordinateSystem)

Set mocap coordinate.

Parameters

  • eUpAxis
  • eFrontAxis
  • eCoordinateSystem

Properties

position

Position conversion settings for the device.

rotation

Rotation conversion settings for the device.

system

Coordinate-system convention used by the device, including handedness and axis orientation.

thisown

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