Purpose

Sets the position, rotation and scale of an element from an Exposable Transform Array node.

Syntax

void SetTransformArrayPRS(int elementID, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ, float scaleX, float scaleY, float scaleZ);

  • elementID: The element ID to set.
  • positionX: The position X.
  • positionY: The position Y.
  • positionZ: The position Z.
  • rotationX: The rotation X.
  • rotationY: The rotation Y.
  • rotationZ: The rotation Z.
  • scaleX: The scale X.
  • scaleY: The scale Y.
  • scaleZ: The scale Z.

Example

function Update()  { 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Exposable Transform Array");
    node.SetTransformArrayPRS(0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
    node.SetTransformArrayPRS(1, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
}