PDA

View Full Version : How to stop vizact.move


Jerry
05-10-2007, 03:56 PM
Once you start something moving with vizact.move, how can
you stop the motion before the time specified?

farshizzo
05-10-2007, 04:03 PM
Use the node.endAction() command to stop the current action. You can also use node.clearActions() to stop the current action and clear any queued actions.

yak
06-02-2009, 12:16 PM
Use the node.endAction() command to stop the current action. You can also use node.clearActions() to stop the current action and clear any queued actions.

what doe you mean by this...when Can i use this....I have an application where my 3d human model is walking in place infinitaly but i want to be able to freeze or pause it.

Jeff
06-04-2009, 04:25 PM
If your avatar is cycling an animation you can use set its speed to 0 to pause and 1 to resume the animation using setAnimationSpeed.
import viz
viz.go()

avatar = viz.add('vcc_female.cfg', pos = [0,0,10], euler = [180,0,0])
avatar.state(2)

vizact.onkeydown('1', avatar.setAnimationSpeed,0,0)
vizact.onkeydown('2', avatar.setAnimationSpeed,0,1)