View Single Post
  #2  
Old 04-30-2007, 10:25 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Can you post the code? viztask should not automatically loop unless you explicitly insert a loop using either the while or for statement. Either way, you can exit a task by simply executing the return statement:
Code:
MyTask():
    yield viztask.waitTime(1)

    return

    print 'hello' #This code will not be executed
Reply With Quote