Notch Notch Manual 0.9.23
 Light | Dark
GetLayer()

GetLayer()

Purpose #

Retrieves the layer object with the given index. If the layer is not found, it returns an object of type undefined.

Syntax #

object FindLayer(int layer_index);

Parameters

layer_indexThe array index of the layer.

returns Layer Object if found or, if not found, object of type undefined.

Example #

function Update()
{ 
    layer = Document.GetLayer(0);
    node = layer.FindNode("Frame Buffer");
    value = node.GetFloat('Transform.Position X');
}