WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:43 PM.


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