Notch Notch Manual 0.9.23
 Light | Dark
GetNumLayers()

GetNumLayers()

Purpose #

Returns the number of layers in the project.

Syntax #

int GetNumLayers();
returns an integer of the number of layers in the project.

Example #

function Update()
{ 
    var x = Document.GetNumLayers();     
}