WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Rendering problem (https://forum.worldviz.com/showthread.php?t=566)

Vygreif 04-30-2006 08:30 PM

Rendering problem
 
Hi,
I have a program with a timer which constantly updates the environment. Upon certain exit conditions it turns all the objects invisible and calls the following code:

modeinfo.visible(viz.ON)
modeinfo.message("Experiment concluded.")
viz.waitkeypress()
onkeydown('s')
viz.quit()

However, it neither renders the objects turning invisible nor the message. Does the program just not refresh if I freeze it within a timer?

-YG

farshizzo 05-01-2006 03:26 PM

Hi,

You are stalling application by using the viz.waitkeypress command. This command is only meant to be used inside a director function. See the command reference for more details.


All times are GMT -7. The time now is 07:10 AM.

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