<bone>.getAxisAngle

Returns the axis-angle rotation

 

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

Return Value

[ x , y , z , deg ]

Example

head = avatar.getBone('skel_Head')

print head.getAxisAngle(viz.AVATAR_WORLD)

See also

<bone>.setAxisAngle
<bone>.getEuler