Notch Notch Manual 0.9.23
 Light | Dark
FindLayer()

FindLayer()

Purpose #

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

Syntax #

object FindLayer(String layer_name);

Parameters

layer_nameThe name of the layer as set in Notch Builder.

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

Example #

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