View Single Post
  #6  
Old 05-07-2008, 09:40 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Here is a short sample:
Code:
lookLeft = vizact.boneSpinTo('Bip01 Head',mode=viz.AVATAR_LOCAL,euler=(-90,0,0),speed=90)

avatar.runAction(lookLeft)
And here is the documentation for the command:
Code:
<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
Reply With Quote