I could make and models to follow me.
Is there a best way?
Quote:
import viz
import vizshape
import vizact
viz.go()
grid = vizshape.addGrid()
vrpn = viz.addExtension('vrpn7.dle')
hl = vrpn.addTracker( 'Tracker0@localhost',8)
hr= vrpn.addTracker( 'Tracker0@localhost',14)
handLeft=viz.add('hand_left.cfg')
handRight=viz.add('hand.cfg')
def followMe():
pl=hl.getPosition()
el=hl.getEuler()
handLeft.setPosition(pl)
handLeft.setEuler(el)
pr=hr.getPosition()
er=hr.getEuler()
handRight.setPosition(pr)
handRight.setEuler(er)
vizact.ontimer(0.01,followMe)
|