Purpose

Returns the number of nodes in the layer.

Syntax

int GetNumNodes();

returns an integer of the number of nodes in the layer.

Example

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    var x = layer.GetNumNodes();
}