View Single Post
Old 01-29-2015, 02:44 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,466
The vizinput dialogs create a blocking action which will halt rendering and events. If you want the user to make selections while the script runs normally you can use one of Vizard's other GUI libraries. Does this work for you?

import vizinfo
import viz
import vizshape


info = vizinfo.InfoPanel('Press n to toggle visibility of the ball')
dropdown = info.addLabelItem('blah',viz.addDropList())

theball = vizshape.addCircle(pos=[0,1.5,5])
vizact.onkeydown('n', theball.visible, viz.TOGGLE)
Reply With Quote