SetTransformArrayColour()
Purpose #
Sets the colour of an element from an Exposable Array node.
Syntax #
void SetTransformArrayColour(int element_id, float red, float green, float blue, float alpha);
Parameters
alpha | The alpha value. |
blue | The blue value. |
element_id | The element ID to set. |
green | The green value. |
red | The red value. |
Example #
function Update()
{
layer = Document.FindLayer("My Layer");
node = layer.FindNode("Exposable Array");
node.SetTransformArrayColour(0, 1.0, 0.0, 0.0, 1.0); // Set to red
}