ModelData:getNodeParent

Given a child node, this function returns the index of its parent.


parent = ModelData:getNodeParent(index)

Arguments

NameTypeDescription
indexnumber The index of the child node.

Returns

NameTypeDescription
parentnumber The index of the parent.

parent = ModelData:getNodeParent(name)

Arguments

NameTypeDescription
namestring The name of the child node.

Returns

NameTypeDescription
parentnumber The index of the parent.

See also