Notch Notch Manual 1.0
 Light | Dark
GetChild()

GetChild()

Purpose #

Retrieves the child node object with the given index.

Syntax #

object GetChild(int node_index);

Parameters

node_indexThe 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);
    }
}