View Single Post
  #2  
Old 08-08-2011, 12:37 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The following should show a hand that's animated with glove data and moves with the Patriot sensor. Does this work for you?
Code:
import viz
import hand
viz.go()

#Identify the data glove's port.
PORT_5DT_USB = 0

#Add the 5DT sensor
sensor = viz.add('5dt.dls')

#Create a hand object from the data glove
glove = hand.add(sensor,hand.GLOVE_5DT)

#Connect to Patriot sensor
polhemus = viz.add('polhemus.dle')
patriot = polhemus.addPatriot()

#Link the hand to the Patriot data
viz.link(patriot,glove)
Reply With Quote