Notch Notch Manual 0.9.23
 Light | Dark
SetTransformArrayColour()

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

alphaThe alpha value.
blueThe blue value.
element_idThe element ID to set.
greenThe green value.
redThe 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
}