PDA

View Full Version : viztask question


cade_mccall
04-29-2007, 10:05 PM
Hi-

I'd like to use viztask to pause once and then continue, but using viztask.waitTime loops the task until I kill it. Is there a command for just executing the task once after pausing or a way to kill the task within itself?

Thanks,
Interuption

farshizzo
04-30-2007, 10:25 AM
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:MyTask():
yield viztask.waitTime(1)

return

print 'hello' #This code will not be executed