WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 10-24-2012, 05:20 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could try something like the following to place the viewpoint just above the origin. This code is assuming the tracker coordinate system matches Vizard's:
Code:
#get pos of tracker when script starts
pos=tracker.getPosition()

#link view to tracker
trackerLink = viz.link(tracker,viz.MainView)
#apply postTrans operator and negate x,z values
trackerLink.postTrans([-pos[0],pos[1],-pos[2]])
Reply With Quote
 

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


All times are GMT -7. The time now is 11:54 PM.


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