Purpose

Sets the UV scale and offset of an element from an Exposable Transform Array node.

Syntax

void SetTransformArrayUVScaleOffset(int elementID, float scaleX, float scaleY, float offsetX, float offsetY);

  • elementID: The element ID to set.
  • scaleX: The scale X value.
  • scaleY: The scale Y value.
  • offsetX: The offset X value.
  • offsetY: The offset Y value.

Example

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