![]()  | 
	
		
 exiting a yield statement 
		
		
		Hello there, 
	I have a question regarding exiting a yield statement, after a certain time elapsed. I am changing a global variable according to a keypress (using yield viztask.waitKeyDown) within a function, if that keypress should not happen, I want to exit the yield statement after a certain time interval. And continue the protocol with the unchanged global variable. I might be wrong using yield, and there is some other way (I read about python threading?Running a timer parallel to yield?), could you point me to some example code? I couldn't find this scenario in the tutorial. Thank you. Code: 
	Step=1 | 
		
 Have a look at the viztask.waitAny condition. I believe the example on that page does exactly what you want. 
	 | 
		
 Thank you! that I must have overlooked! 
	 | 
| All times are GMT -7. The time now is 12:55 AM. | 
	Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
	Copyright 2002-2023 WorldViz LLC