IC Python API:RLPy RPositionSetting

From Reallusion Wiki!
Jump to: navigation, search

Main article: Modules.

Detailed Description

This class is the position setting used in the class RDeviceSetting. Provide methods to set coordinate space(WorldSpace/LocalSapce) and the unit of distance(Centimeters/Meters).

Member Functions

GetCoordinateSpace

RLPy.RPositionSetting.GetCoordinateSpace ( self )

Get coordinate space. ( Default value is ECoordinateSpace::WORLD )

Returns

Type of coordinate space - RLPy.ECoordinateSpace
  • RLPy.ECoordinateSpace_World
  • RLPy.ECoordinateSpace_Local

GetUnit

RLPy.RPositionSetting.GetUnit ( self )

Get position unit. ( Default value is EPositionUnit::CENTIMETERS )

Returns

Position unit - RLPy.EPositionUnit
  • RLPy.EPositionUnit_Centimeters
  • RLPy.EPositionUnit_Meters

SetCoordinateSpace

RLPy.RPositionSetting.SetCoordinateSpace ( self, eCoordinateSpace )

Set coordinate space.

Parameters

eCoordinateSpace [IN] Type of coordinate space - RLPy.ECoordinateSpace

  • RLPy.ECoordinateSpace_World
  • RLPy.ECoordinateSpace_Local

SetUnit

RLPy.RPositionSetting.SetUnit ( self, eUnit )

Set position unit.

Parameters

eUnit [IN] Position unit - RLPy.EPositionUnit

  • RLPy.EPositionUnit_Centimeters
  • RLPy.EPositionUnit_Meters