#1
|
|||
|
|||
viztask question
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 |
#2
|
|||
|
|||
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 |
|
|