View Single Post
  #2  
Old 08-18-2018, 09:21 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,461
Here's some example code:

Code:
import viz
import vizact
import win32api

viz.go()
viz.addChild('piazza.osgb')

def setCursorCenter():
	win32api.SetCursorPos((400,300))
	
vizact.onkeydown(' ',setCursorCenter)
Reply With Quote