Notch Notch Manual 0.9.23
 Light | Dark
GetTransformArrayColour()

GetTransformArrayColour()

Purpose #

Gets the colour of an element from an Exposable Array node.

Syntax #

object GetTransformArrayColour(int element_id);

Parameters

element_idThe element ID to get.

Example #

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Exposable Array");
    colourList = node.GetTransformArrayColour(0);
    for(i = 0; i < colourList.length; ++i)
    {
        Log("colourList[" + i + "]=" + colourList[i]);
    }
}