Purpose

Retrieves the child node object with the given index.

Syntax

object GetChild(int NodeIndex);

  • NodeIndex: The array index of the child nodes.

returns Node Object if found or, if not found, object of type undefined.

Example

function Update()  { 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Image 2D");
    numChildren = node.GetNumChildren();
    for (i = 0; i < numChildren; i++) {
        child = node.GetChild(i);
    }
}