<vizact>.boneSpinTo

Animate an avatar bone spinning to an orientation

 

<vizact>.boneSpinTo(
    bone    
    mode = viz.ABS_PARENT    
    quat = None    # Keyword argument
    euler = None    # Keyword argument
    axisAngle = None    # Keyword argument
    speed = None    # Keyword argument
    time = None    # Keyword argument

)

 

bone

An Avatar bone object or the name of a bone.


mode = viz.ABS_PARENT

The transformation mode to apply the rotations with


quat = None

The quaternion rotation to spin to


euler = None

The euler rotation to spin to


axisAngle = None

The Axis-Angle rotation to spin to


speed = None

The speed to spin at in degrees/sec


time = None

The amount of time to spin for


Remarks

This action must be applied to the avatar, NOT the bone. This action will lock the bone when it begins, but will not unlock it when finished.

Return Value

An action that can be applied to any avatar object

Example

lookLeft = vizact.boneSpinTo('Bip01 Head',mode=viz.AVATAR_LOCAL,euler=(-90,0,0),speed=90)

avatar.runAction(lookLeft)