Notch Notch Manual 0.9.23
 Light | Dark
RemoveChild()

RemoveChild()

Purpose #

Removes a child node from a node.

Syntax #

void RemoveChild(object node);

Parameters

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