RemoveChild()
Updated: 4 Dec 2023
Updated: 4 Dec 2023
Removes a child node from a node.
void RemoveChild(object node);
node | The child node to remove. |
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);
}
}