View Single Post
  #2  
Old 03-22-2010, 10:48 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Use vizact.ontimer with a rate of 0 or vizact.onupdate to call a function every frame where you can get the viewpoint position and orientation data.
Code:
def showData():
	print viz.MainView.getPosition(),viz.MainView.getEuler()

vizact.ontimer(0,showData)
Reply With Quote