WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   display the position and euler coords of the main view (https://forum.worldviz.com/showthread.php?t=2636)

Josh 03-21-2010 07:26 AM

display the position and euler coords of the main view
 
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.
Code:

def showData():
        print viz.MainView.getPosition(),viz.MainView.getEuler()

vizact.ontimer(0,showData)



All times are GMT -7. The time now is 03:16 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC