WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-29-2009, 04:29 AM
Andy Andy is offline
Member
 
Join Date: Mar 2008
Location: Germany
Posts: 36
animation sequence

If I have a node3d object and call an animation state, is it possible to stop the action on the last position and start a new action state on this position (like a sequence of animations)?

I my application I would like to move a robotic gripper in a close position and open position.

Code:
#add robiGrip - default position is closed
robiGrip = viz.add("gripper.cfg") 	

def onkeydown(key):
	if key == 'o':
		print 'open'
		robiGrip.setAnimationSpeed(0,1)
		robiGrip.state(1)
	elif key == 'c':
		print 'close'
		robiGrip.setAnimationSpeed(0,1)
		robiGrip.state(2)
	elif key == 'p':
		print 'pause'
		robiGrip.setAnimationSpeed(0,0)
	elif key == 'r'
		print 'resume'
		robiGrip.setAnimationSpeed(0,1)
Reply With Quote
  #2  
Old 10-01-2009, 10:42 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can freeze an animation on the last frame, for example.
Code:
female = viz.add('vcc_female.cfg', pos = [0,0,5], euler = [180,0,0])
female.execute(5, freeze = True)
Then if the second animation starts at that same point the first one stopped it should work.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation Tracks.... k_iwan Vizard 2 03-26-2007 05:52 PM
Jumpy animation Elizabeth S Vizard 1 11-08-2006 02:11 PM
animation sequence pkhoosh Vizard 2 01-23-2006 08:03 AM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM
animation sequence shai Vizard 1 10-27-2004 10:09 AM


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


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