Model:getNodeParent

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


parent = Model:getNodeParent(index)

Arguments

NameTypeDescription
indexnumber The index of the child node.

Returns

NameTypeDescription
parentnumber The index of the parent.

parent = Model:getNodeParent(name)

Arguments

NameTypeDescription
namestring The name of the child node.

Returns

NameTypeDescription
parentnumber The index of the parent.

See also