WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-19-2011, 03:18 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Question 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)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
plug-in for Ascension MotionStar Eunice Vizard 17 01-09-2006 01:45 PM


All times are GMT -7. The time now is 03:24 AM.


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