![]() |
|
#1
|
|||
|
|||
|
How to delay time in Vizard
Hi all,
I want to define a function which will be called when the mouse is clicked. The function will block the viz.MainView for a second. Here is my code: import viz import time def BlockMainView(): viz.visible(viz.OFF) time.delay(1) viz.visible(viz.ON) vizact.onmousedown(viz.MOUSEBUTTON_LEFT, BlockMainView) However, the delay function seems being executed before viz.visible(viz.OFF) and viz.visible(viz.ON), so that the viz.visible(viz.OFF) seems never being executed. How can I solve the problem? Zhi |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 11:58 AM |
| Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 11:46 AM |
| Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 11:46 AM |
| Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |
| timer question | Elittdogg | Vizard | 5 | 10-10-2007 03:49 PM |