Vizard 7 » Command Index » Vizard objects » bone » <bone>.getEuler
7.6

<bone>.getEuler

Returns the euler rotation

<bone>.getEuler(  
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 euler rotation of the bone. The rotation value will be relative to the coordinate system specified by the mode parameter.

Return Value

[ yaw , pitch , roll ]

Example

head = avatar.getBone('skel_Head')

print(head.getEuler())

See also

<bone>.setEuler
<bone>.getAxisAngle
<bone>.getMatrix