WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 04-29-2007, 10:05 PM
cade_mccall cade_mccall is offline
Join Date: Sep 2004
Posts: 61
viztask question


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?

Reply With Quote
Old 04-30-2007, 10:25 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

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:
    yield viztask.waitTime(1)


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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 12:36 AM.

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