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


object FindLayer(String LayerName);

  • LayerName : The name of the layer as set in Notch Builder.

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


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