#1
|
|||
|
|||
scheduled animation paths: jumps
Hi
Three animation paths should be scheduled one after another. The path speed should be 100 steps/sec Code:
pathFW.speed(100) # default: 1/sec? Code:
yield viztask.waitTime(len(BW_Pos)/100) Code:
def onkeydown(key): PATH() if key == 't': ###+++++++++++++++++++++++++++ ### SCHEDULE the room movement, sound and the output voltage def ScheduleOutputs(): song.play() d.eAnalogOut(3.0, 0.0) #(AO0, AO1) pathFW.play() yield viztask.waitTime(((len(FW_Pos))/100)) d.eAnalogOut(1.0, 0.0) pathStopp.play() yield viztask.waitTime(((len(Stopp_Pos))/100)) d.eAnalogOut(3.0, 0.0) pathBW.play() yield viztask.waitTime(((len(BW_Pos))/100)) d.eAnalogOut(1.0, 0.0) song.stop() viztask.schedule(ScheduleOutputs()) ###+++++++++++++++++++++++++++ viz.callback(viz.KEYDOWN_EVENT,onkeydown) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
speed on animation path | whj | Vizard | 8 | 11-17-2008 07:41 PM |
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 |