Vizard 7 » Command Index » Vizard objects » bone » <bone>.getParent
7.7

<bone>.getParent

Returns the parent bone

<bone>.getParent()  

Remarks

Use this command to retrieve a handle to the parent bone. If the bone does not have a parent, the returned handle will be invalid.

The parent bone sits above the bone in the hierarchical skeletal structure. For example, the parent of the head bone is usually the neck bone.

Return Value

Parent bone

Example

headBone = avatar.getBone('skel_Head')

#Print the name of the parent bone
print(headBone.getParent().getName())

See also

<bone>.getName
<bone>.getChildren