Thread: Animation
View Single Post
  #4  
Old 05-13-2013, 05:25 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If the animation is cycling and you want to change the animation time, pass in 0 for the animation number. Does that work for you?
Code:
import viz
import vizact

viz.go()

avatar = viz.addAvatar('vcc_male2.cfg',pos=[0,0,5],euler=[180,0,0])
avatar.state(4)

vizact.onkeydown('1',avatar.setAnimationTime,0,5)
vizact.onkeydown('2',avatar.setAnimationTime,0,13)
Reply With Quote