WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   viztask question (https://forum.worldviz.com/showthread.php?t=1060)

cade_mccall 04-29-2007 10:05 PM

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

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:
Code:

MyTask():
    yield viztask.waitTime(1)

    return

    print 'hello' #This code will not be executed



All times are GMT -7. The time now is 07:39 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC