View Single Post
  #2  
Old 11-19-2008, 02:42 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
checkButton should be getting called. try

Code:
def checkButton():
	print "in checkButton"

vizact.ontimer(0,checkButton)
this following line has incorrect syntax and you don't need it here for calling checkButton since you are using vizact.ontimer

Code:
starttimer(0,.001,FOREVER)
if you were using a callback with it it would be

Code:
viz.starttimer(0,0,viz.FOREVER)
one other thing is that your timer will not run every .001 seconds. It will only get called as fast as your framerate. If you use 0 for the rate the timer will be called every frame.
Reply With Quote