View Single Post
  #3  
Old 07-21-2003, 12:59 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

This is a somewhat newer feature and somehow didn't make it into the documentation. Here is a description of viz.input and another command viz.choose.

viz.input(prompt, value='')

prompt - A Message that will appear above the input box
value - The initial value of the input box

This method will return the text inside the box


viz.choose(prompt,choices, selection=0)

prompt - A message that will appear above the selection list
choices - A list of strings that represent the possible choices
selection - The index of the initial selected value in the list

This method will return the index number of the selected option.


Also if you want to just output a message you can do the following command:

Code:
import win32ui
win32ui.MessageBox("Some message","Title")
About your vrml file, are you getting any errors in the output window when the vrml file is loading? One thing to keep in mind is that the current vrml loader does not support Texture Transorm nodes. Open your vrml file in a text editor and make sure there aren't any Texture Transfrom nodes.
Reply With Quote