View Single Post
  #2  
Old 04-10-2013, 11:16 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
First get a handle to the PPT tracker in Vizard via VRPN:
Code:
vrpn = viz.add('vrpn7.dle')
tracker = vrpn.addTracker('PPT0@hostname',0)
Then you can print the position data every frame or write it to a text file:
Code:
def printPPTData():
	print tracker.getPosition()
	
vizact.onupdate(0,printPPTData)
Reply With Quote