Notch Notch Manual 0.9.23
 Light | Dark
GetTransformArrayUVScaleOffset()

GetTransformArrayUVScaleOffset()

Purpose #

Gets the UV scale and offset of an element from an Exposable Array node.

Syntax #

object GetTransformArrayUVScaleOffset(int element_id);

Parameters

element_idThe element ID to get.

Example #

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