Purpose

Sets the colour of an element from an Exposable Transform Array node.

Syntax

void SetTransformArrayColour(int elementID, float red, float green, float blue, float alpha);

  • elementID: The element ID to set.
  • red: The red value.
  • green: The green value.
  • blue: The blue value.
  • alpha: The alpha value.

Example

function Update()  { 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Exposable Transform Array");
    node.SetTransformArrayColour(0, 1.0, 0.0, 0.0, 1.0); // Set to red
}