WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-30-2006, 08:30 PM
Vygreif Vygreif is offline
Member
 
Join Date: Sep 2005
Posts: 21
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
Reply With Quote
  #2  
Old 05-01-2006, 03:26 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:32 AM.


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