View Single Post
  #2  
Old 09-23-2009, 09:19 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You should be using the viztask module. There are many examples of it in the docs and on the forum.
Code:
import viztask

def callVizFunctionsInALoop():
	for i in range(0, 10):
		moveAvatar(i)
		takeSnapshot()
		yield viztask.waitTime(someDelay) #Pause function for some time

viztask.schedule( callVizFunctionsInALoop() )
Reply With Quote