Using Shape Rotation

  Previous  Next

Functions Provided For Rotating Shapes

The following table provides an overview of all functions to rotate shapes:

Function

Description

void SetRotationX(float value)

Sets the Rotation X value. Valid values for value range from -180.00 to 180.00.

float GetRotationX()

Returns the currently set value for Rotation X.

void SetRotationY(float value)

Sets the Rotation Y value. Valid values for value range from -180.00 to 180.00.

float GetRotationY()

Returns the currently set value for Rotation Y.

void SetRotationZ(float value)

Sets the Rotation Z value. Valid values for value range from -180.00 to 180.00.

float GetRotationZ()

Returns the currently set value for Rotation Z.

void SetRotation(float x, float y, float z)

Sets the Rotation X, Y, Z values. Valid values for x, y, z range from -180.00 to 180.00.

void SetRotationOrigin(int mode)

Sets the Rotation Origin. Please use a constant as described below for mode.

int GetRotationOrigin()

Returns the currently set Rotation Origin.

void SetRotationAnimationX(int value)

Sets the Permanent Rotation Mode for Rotation X. Use 1 (TRUE) to activate it. Use 0 (FALSE) to deactivate it.

int GetRotationAnimationX()

Returns if the Permanent Rotation Mode for Rotation X is activated or deactivated.

void ToggleRotationAnimationX()

Toggles the Permanent Rotation Mode for Rotation X.

void SetRotationAnimationY(int value)

Sets the Permanent Rotation Mode for Rotation Y. Use 1 (TRUE) to activate it. Use 0 (FALSE) to deactivate it.

int GetRotationAnimationY()

Toggles the Permanent Rotation Mode for Rotation Y.

void ToggleRotationAnimationY()

Returns if the Permanent Rotation Mode for Rotation Y is activated or deactivated.

void SetRotationAnimationZ(int value)

Sets the Permanent Rotation Mode for Rotation Z. Use 1 (TRUE) to activate it. Use 0 (FALSE) to deactivate it.

int GetRotationAnimationZ()

Toggles the Permanent Rotation Mode for Rotation Z.

void ToggleRotationAnimationZ()

Returns if the Permanent Rotation Mode for Rotation Z is activated or deactivated.

void SetRotationAnimation(int x, int y, int z)

Sets the Permanent Rotation Mode for Rotation X, Y, Z. Use 1 (TRUE) to activate it. Use 0 (FALSE) to deactivate it.

 

Remarks

Not all effects which use shapes offer Rotation Animation. Therefore, the functions are only available if the effect offers Rotation Animation.

 

Rotation Origin Constants

Constant

Description

int ORIGIN_CENTER

Sets the Rotation Origin to Center.

int ORIGIN_GEOMETRIC_CENTER

Sets the Rotation Origin to Geometric Center.

int ORIGIN_FRONT

Sets the Rotation Origin to Front.

int ORIGIN_BACK

Sets the Rotation Origin to Back.

int ORIGIN_LEFT

Sets the Rotation Origin to Left.

int ORIGIN_RIGHT

Sets the Rotation Origin to Right.

int ORIGIN_TOP

Sets the Rotation Origin to Top.

int ORIGIN_BOTTOM

Sets the Rotation Origin to Bottom.

int ORIGIN_TOP_LEFT

Sets the Rotation Origin to Top Left.

int ORIGIN_TOP_RIGHT

Sets the Rotation Origin to Top Right.

int ORIGIN_BOTTOM_LEFT

Sets the Rotation Origin to Bottom Left.

int ORIGIN_BOTTOM_RIGHT

Sets the Rotation Origin to Bottom Right.

int ORIGIN_FRONT_LEFT

Sets the Rotation Origin to Front Left.

int ORIGIN_FRONT_RIGHT

Sets the Rotation Origin to Front Right.

int ORIGIN_BACK_LEFT

Sets the Rotation Origin to Back Left.

int ORIGIN_BACK_RIGHT

Sets the Rotation Origin to Back Right.

int ORIGIN_FRONT_TOP

Sets the Rotation Origin to Front Top.

int ORIGIN_FRONT_BOTTOM

Sets the Rotation Origin to Front Bottom.

int ORIGIN_BACK_TOP

Sets the Rotation Origin to Back Top.

int ORIGIN_BACK_BOTTOM

Sets the Rotation Origin to Back Bottom.

int ORIGIN_FRONT_TOP_LEFT

Sets the Rotation Origin to Front Top Left.

int ORIGIN_FRONT_TOP_RIGHT

Sets the Rotation Origin to Front Top Right.

int ORIGIN_FRONT_BOTTOM_LEFT

Sets the Rotation Origin to Front Bottom Left.

int ORIGIN_FRONT_BOTTOM_RIGHT

Sets the Rotation Origin to Front Bottom Right.

int ORIGIN_BACK_TOP_LEFT

Sets the Rotation Origin to Back Top Left.

int ORIGIN_BACK_TOP_RIGHT

Sets the Rotation Origin to Back Top Right.

int ORIGIN_BACK_BOTTOM_LEFT

Sets the Rotation Origin to Back Bottom Left.

int ORIGIN_BACK_BOTTOM_RIGHT

Sets the Rotation Origin to Back Bottom Right.

 

MADRIX Version: 5.6 | Script Version: 3.18
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100%
 Previous   Next

 


Enable automatic translation | Activer la traduction automatique |