WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 08:12 PM.


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