IC Python API:RLPy RPositionSetting

From Reallusion Wiki!
Revision as of 21:59, 31 March 2019 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Detailed Description== This class is the position setting used in the class RDeviceSetting. Provide methods to set...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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