Simplest script not working
I'm a bit dumbfounded by a tiny script not working the way I would expect:
This simple script should: 1. Turn the screen white on a 'w' press. 2. Turn the screen black on a 'b' press. 3. Turn the screen white, wait half a seconds and turn it black on a 's' press. For some reason it will not turn it white on the 's' , though it does call the appropriate functions. I have no more ideas on what the issue could be. I hope someone here knows. I have commented out all code irrelevant to the problem and it persists. Code:
#import sys |
Try using a task function to control the program flow. In the following code the screen will turn white for 0.5 seconds after the 's' key is pressed:
Code:
import viz |
Quote:
So from what I understand, though the clearcolor function was executing Vizard was only noting what color to change to. The color would actually change only once control flow was returned to Vizard - which is why it would appear as if only the final color was used. Thanks for your help! |
All times are GMT -7. The time now is 03:11 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC