PDA

View Full Version : display the position and euler coords of the main view


Josh
03-21-2010, 07:26 AM
hi all

I want to display the position and euler coordinates of the main view. how is this possible, so it always refreshes when I move around?

thanks a lot
josh

Jeff
03-22-2010, 10:48 AM
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.
def showData():
print viz.MainView.getPosition(),viz.MainView.getEuler()

vizact.ontimer(0,showData)