Notch Notch Manual 0.9.23
 Light | Dark
GetTransformArrayPRS()

GetTransformArrayPRS()

Purpose #

Gets the position, rotation and scale of an element from an Exposable Array node.

Syntax #

object GetTransformArrayPRS(int element_id);

Parameters

element_idThe element ID to get.

Example #

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