Vizard 8 » Command Index » Vizard objects » bone » <bone>.getChildren
8.0

<bone>.getChildren

Returns a list of all the children bones

<bone>.getChildren()  

Remarks

Use this command to retrieve a list of all child bones. If the bone has no children, then the list will be empty.

The child bones are all the bones whose parent is equal to this bone. The list will NOT contain "grandchildren" bones.

Return Value

List of children bones

Example

neck = avatar.getBone('skel_Neck')

children = neck.getChildren()

#Print name of all child bones
for bone in children:
    print(bone.getName())

See also

<bone>.getName