WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-08-2010, 05:00 PM
ursi ursi is offline
Member
 
Join Date: Dec 2009
Posts: 11
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?
I thought the waiting time should be devided by 100 as well>
Code:
yield viztask.waitTime(len(BW_Pos)/100)
My schedule looks like that, but in the animation there is a jump at the end of the first animation path... I guess, there is a timing problem and the system starts with the second path (pathStopp) before the 1st path (pathFW) is finished.

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)
So, how can I manage that timing problem?
Attached Files
File Type: txt SledMotionBW.txt (3.8 KB, 972 views)
File Type: txt SledMotionFW.txt (3.3 KB, 988 views)
File Type: txt SledMotionStopp.txt (886 Bytes, 1049 views)
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
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


All times are GMT -7. The time now is 05:56 PM.


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