Vizard 7 » Command Index » Vizard objects » bone » <bone>.setAxisAngle
7.7

<bone>.setAxisAngle

Set Axis-Angle rotation

<bone>.setAxisAngle(  
[x,y,z,deg]  
mode = viz.ABS_PARENT # Positional argument
)  
[x,y,z,deg]
Axis-angle rotation
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT

Perform the transformation absolutely in the bones local coordinate system.

viz.ABS_GLOBAL

Perform the transformation absolutely in the bones global coordinate system.

viz.ABS_LOCAL
viz.REL_LOCAL

Perform the transformation relatively in the bones local coordinates system.

viz.REL_PARENT

Perform the transformation relatively in parent bones coordinate system.

viz.REL_GLOBAL

Perform the transformation relatively in bones global coordinate system.

viz.AVATAR_LOCAL

Perform the transformation absolutely in the avatars local coordinate system.

viz.AVATAR_WORLD

Perform the transformation absolutely in the avatars global coordinate system.

Remarks

This command will set the Axis-Angle rotation of the bone.

Note: The bone must be locked in order to apply manual rotations

Return Value

None

Example

head = avatar.getBone('skel_Head')
head.lock()

#Rotate the head 45 degrees along the y-axis
head.setAxisAngle(0,1,0,45)

See also

<bone>.getAxisAngle
<bone>.lock
<bone>.unlock