WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-27-2010, 01:12 PM
bloswald bloswald is offline
Member
 
Join Date: Jan 2010
Posts: 7
Talking Solved

Since my last post, I have learned that tasks require a different way of thinking.

The following code worked for my purposes, and viztask.schedule is only called once.

Code:
def print_this():
    while True:
        yield viztask.waitKeyDown( 'p' )

        print "this"
        yield viztask.waitTime( 1 )

viztask.schedule( print_this() )
Sometimes you have to forget about the problem for a while, then the solution shows itself.

-
bloswald
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
speed on animation path whj Vizard 8 11-17-2008 08:41 PM
Animation Tracks.... k_iwan Vizard 2 03-26-2007 06:52 PM
Jumpy animation Elizabeth S Vizard 1 11-08-2006 03:11 PM
animation sequence pkhoosh Vizard 2 01-23-2006 09:03 AM
avatar animation problems jrodman Vizard 1 01-18-2006 10:12 AM


All times are GMT -7. The time now is 02:49 PM.


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