ModelData:getNodeChildren

Given a parent node, this function returns a table with the indices of its children.


children = ModelData:getNodeChildren(index)

Arguments

NameTypeDescription
indexnumber The index of the parent node.

Returns

NameTypeDescription
childrentable A table containing a node index for each child of the node.

children = ModelData:getNodeChildren(name)

Arguments

NameTypeDescription
namestring The name of the parent node.

Returns

NameTypeDescription
childrentable A table containing a node index for each child of the node.

Notes

If the node does not have any children, this function returns an empty table.

See also