IC8 Python API:RLPy RTransform

From Reallusion Wiki!
Jump to: navigation, search

Description

This class represent the object transform matrix data. This class provides access to RLPy's internal 4x4 matrix operators and related functions. See also: RMatrix4

Constructor & Destructor

__init__ (self, *args)

Initializes a new transform instance.

Parameters

  • args

Member Functions

AlmostEqual (self, kRts)

Reports whether two transform values are approximately equal.

Parameters

  • kRts

AlmostSame (self, kRts, tThreshold)

Reports whether this transform is approximately equal to another transform.

Parameters

  • kRts
  • tThreshold

D (self, *args)

Get the determinate sign of this transform matrix.

Parameters

  • args

From (self, mMatrix)

Set this transform from a 4x4 matrix.

Parameters

  • mMatrix

GetSR (self)

Form a 3x3 matrix with rotation and scale from this transform.

Inverse (self)

Get the inverse of this transform.

IsIdentity (self)

Check if this transform is equal to identity transform. Identity transform corresponds to "no transform" - the object is perfectly aligned with the world or parent axes and positioned at the origin.

Matrix (self)

Get 4x4 matrix from this transform.

R (self, *args)

Get the rotation of this transform matrix.

Parameters

  • args

Rotate (self)

Form a rotate matrix from this transform.

S (self, *args)

Get the Scale of this transform matrix.

Parameters

  • args

Scale (self)

Form a scale matrix from this transform.

T (self, *args)

Get the translation of this transform matrix.

Parameters

  • args

U (self, *args)

Get the stretch of this transform matrix.

Parameters

  • args

__add__ (self, kRts)

The "addition" operator. See Also: +=

Parameters

  • kRts

__eq__ (self, kRts)

The "equal to" operator. See Also: !=

Parameters

  • kRts

__iadd__ (self, kRts)

Adds another value to this value in place.

Parameters

  • kRts

__ne__ (self, kRts)

The "not equal to" operator. See Also: ==

Parameters

  • kRts

Properties

thisown

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

Constants

IDENTITY

MIRROR_IDENTITY

ZERO