View Single Post
  #6  
Old 02-26-2007, 10:25 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
By default, Vizard assumes the avatars idle animation is the first animation. Vizard will use the idle animation after performing walk actions and during the turn actions. The easiest solution would be to place your idle animation at the top of the animation list in your cfg file. Alternatively, you could set the idlepose of the avatar in your script:
Code:
avatar = viz.add('myavatar.cfg')
avatar.idlepose = 4 #Use animation 4 as the idle pose
Also, you can specify the animation to use for the turn action:
Code:
actor.act(vizact.turn(-110,anim=5)) #Use animation 5 while turning
Reply With Quote