WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-29-2007, 10:05 PM
cade_mccall cade_mccall is offline
Member
 
Join Date: Sep 2004
Posts: 61
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
Reply With Quote
  #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
Reply

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:23 AM.


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