Purpose

Removes a child node from a node.

Syntax

void RemoveChild(object Node);

  • Node: The child node to remove.

Example

function Update()  { 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Shape 3D");
    numChildren = node.GetNumChildren();
    if(numChildren > 0)  {
        childNode = node.GetChild(0);
        node.RemoveChild(childNode);
    }
}