Notch Notch Manual 0.9.23
 Light | Dark
Layer

Layer

Purpose #

Provides the current layer object.

Syntax #

object Layer;

Example #

function Update()
{ 
    layer = UpdateContext.Layer;
    node = layer.FindNode("Frame Buffer");
    node.SetInt("Attributes.Frame Grab Active", 1);
}
Please note this is a member variable of UpdateContext, not a function.