View Single Post
  #1  
Old 01-26-2015, 07:15 PM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 36
vizinput disables keyboard?

OK another weird one... We are finding that after a script executes vizinput.choose (or vizinput.input), the keyboard is disabled so that any keydown events (including ESC) don't get detected. For example, the following code works just fine until the commented line is un-commented:

Code:
import vizinput
import viz
import vizshape
import vizact

def setVisibility(blah):
	theball.visible(blah)

viz.go()

#vizinput.choose('blah', ['fsdg','sd'])
theball = vizshape.addCircle()
theball.setPosition(0,0,4)
vizact.onkeydown('n', setVisibility, viz.TOGGLE)
no clue how to solve this one..
Reply With Quote