View Single Post
  #1  
Old 09-23-2009, 06:52 AM
omidbrb omidbrb is offline
Member
 
Join Date: Dec 2008
Posts: 27
Calling vizard functions in a loop

Hi,

I noticed that if I call Vizard functions that have a visual effect in a loop, the commands wouldn't be run before the encapsulating function returns (even with delays in between) :

Code:
def callVizFunctionsInALoop():
	for i in range(0, 10):
		moveAvatar(i)
		takeSnapshot()
		#viz.waittime(someDelay)  #Won't help
		#time.sleep(someDelay)    #Won't help
Here, the snapshots will be taken as if the moveAvatar() function hasn't been run.

Is there any Vizard command that will get around this problem?

Thanks
Omid
Reply With Quote