WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-10-2007, 03:56 PM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
How to stop vizact.move

Once you start something moving with vizact.move, how can
you stop the motion before the time specified?
Reply With Quote
  #2  
Old 05-10-2007, 04:03 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #3  
Old 06-02-2009, 12:16 PM
yak yak is offline
Member
 
Join Date: May 2009
Posts: 22
Quote:
Originally Posted by farshizzo View Post
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.
Reply With Quote
  #4  
Old 06-04-2009, 04:25 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Code:
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:50 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC