PDA

View Full Version : Rendering problem


Vygreif
04-30-2006, 08:30 PM
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.