Purpose

Sets the name of the node.

Syntax

void SetName(String nodeName);

  • nodeName: the name the node is to be set to.

Example

function Update()  { 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Image 2D");
    node.SetName("My Node");
}