WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-21-2010, 07:26 AM
Josh Josh is offline
Member
 
Join Date: Jan 2010
Posts: 63
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
Reply With Quote
  #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
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
View nlfrnassimi Vizard 0 03-17-2009 02:01 AM


All times are GMT -7. The time now is 07:40 AM.


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