WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-18-2015, 12:00 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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
 

Tags
ppt, runtime not found, wand, zspace


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:47 PM.


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