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 LayerIndex);

  • LayerIndex: The 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");
}