Purpose

Returns the name of the layer.

Syntax

string GetName();

returns the name of the object.

Example

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