#1
|
|||
|
|||
Ascension MotionStar
Hello, I'm fairly new to vizard. I'm trying to link my sensors to an avatar. Below is my current script the sensors:
import viz viz.go() import vizshape import vizact ascension = viz.add('ascension.dle') sensors = ascension.addMotionStar('10.32.16.31') x=0 colors = [viz.RED,viz.BLUE,viz.YELLOW,viz.GREEN,viz.PURPLE,v iz.GRAY,viz.WHITE,viz.ORANGE,viz.YELLOW,viz.GRAY] while x<100: i=1 for s in sensors: #i=senors.getBirdNumber() #print i print i, s.getPosition(),s.getEuler() i=i+1 model = vizshape.addSphere(0.05, color=colors [s.getBirdNumber()]) #model = vizshape.addSphere(0.05) viz.link(s,model) x=x+1 #print s.getBirdNumber() #for s in sensors: print s import vizcam vizcam.PivotNavigate(center=[0,2,0],distance=1) |
#2
|
|||
|
|||
This question should be in one of the Vizard forums. Also, please use code tags when posting code to preserve the indentation.
I'm sure sure what the question is. Are you having trouble connecting to the trackers? Does the following work for you? Code:
import viz viz.go() ascension = viz.add('ascension.dle') sensors = ascension.addMotionStar('10.32.16.31') for s in sensors: model = vizshape.addCube(0.1) viz.link(s,model) http://kb.worldviz.com/articles/1483 |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
plug-in for Ascension MotionStar | Eunice | Vizard | 17 | 01-09-2006 01:45 PM |