#1
|
|||
|
|||
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) |
#2
|
|||
|
|||
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) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Animation Tracks.... | k_iwan | Vizard | 2 | 03-26-2007 06:52 PM |
Jumpy animation | Elizabeth S | Vizard | 1 | 11-08-2006 03:11 PM |
animation sequence | pkhoosh | Vizard | 2 | 01-23-2006 09:03 AM |
avatar animation problems | jrodman | Vizard | 1 | 01-18-2006 10:12 AM |
animation sequence | shai | Vizard | 1 | 10-27-2004 11:09 AM |