View Single Post
  #2  
Old 01-14-2008, 11:01 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Just call the function in each iteration of the loop in your BallFlight task:
Code:
def BallFlight():
	for i in range(0,9):
		ball.setPosition(ball.initial)
		ballfunc(0,0,-1,1,SCALESEQ[i])
		yield viztask.waitTime(2)
viztask.schedule( BallFlight() )
Reply With Quote