View Single Post
  #2  
Old 01-19-2005, 10:36 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

When you run a script within Vizard, it is actually executed twice. It is first executed to check for errors. If there are no errors then the script is passed on to the graphics engine. During this first execution you can prevent certain code from being executed by doing the following:
Code:
if viz.running():
    #This code won't be called during first execution
viz.message works because it suppresses itself if it is called during the first execution. Vizard 2.5 will also suppress print statements during the first execution.
Reply With Quote