Open topic with navigation
<bone>.getParent
Returns the parent bone
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