View Single Post
  #4  
Old 09-18-2015, 12:00 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,465
User the vizconnect.getTracker() command to get a handle to the trackers:

Code:
import viz
import vizconnect
import vizact

vizconnect.go('vizconnect_config.py')
head_tracker = vizconnect.getTracker('head_tracker').getNode3d()
wand_tracker = vizconnect.getTracker('wand_tracker').getNode3d()

def printData():
	print 'head tracker',head_tracker.getPosition()
	print 'wand tracker',wand_tracker.getPosition()
	
vizact.ontimer(1,printData)
Reply With Quote