View Single Post
  #3  
Old 04-18-2017, 04:24 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,467
Try the following:

Code:
#now add all trackers and link a shape to it
for i in range(0, 24):
	t = vrpn.addTracker( 'Tracker0@localhost',i )
	s = vizshape.addSphere(radius=.1)
	l = viz.link(t,s)
	#keep the sphere in the reference frame of the view
	l.postMultLinkable(viz.MainView)
	#uncomment the following line to move the sphere forward
	#l.preTrans([0,0,3])
	trackers.append(t)
	links.append(l)
	shapes.append(s)
Reply With Quote