GetLayer()
Updated: 4 Dec 2023
Updated: 4 Dec 2023
Retrieves the layer object with the given index. If the layer is not found, it returns an object of type undefined.
object FindLayer(int layer_index);
layer_index | The array index of the layer. |
returns Layer Object if found or, if not found, object of type undefined.
function Update()
{
layer = Document.GetLayer(0);
node = layer.FindNode("Frame Buffer");
value = node.GetFloat('Transform.Position X');
}