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

<bone>.getPosition

Returns the position

<bone>.getPosition(  
mode = viz.ABS_PARENT  
)  
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT
viz.REL_PARENT

Return the value in the bones local coordinate system.

viz.ABS_GLOBAL
viz.REL_GLOBAL

Return the value in the global coordinate system.

viz.AVATAR_LOCAL

Return the value in the avatars local coordinate system.

viz.AVATAR_WORLD

Return the value in the avatars global coordinate system.

Remarks

Use this command to retrieve the position of the bone. The position will be relative to the coordinate system specified by the mode parameter.

Return Value

[ x , y , z ]

Example

head = avatar.getBone('skel_Head')

print(head.getPosition(viz.AVATAR_WORLD))

See also

<bone>.setPosition