![]() |
|
#1
|
|||
|
|||
|
Cortex to Vizard
Hi
Im trying to stream Cortex data to Vizard. I can do that - but I only get 1 frame. Can someone help me figure out how to get continuous frames. (sorry im not a programmer ) At the moment its putting a hedra on each marker - but just one frame. thanks PS here's what I have already: import viz import vizconfig viz.go() import vizcam vizcam.PivotNavigate(center=[0,1,0],distance=10) #Get CORTEX info evart = viz.add('evart.dle',0,'127.0.0.1') body1 = evart.getBody(0) for x in range(40): newhedra = viz.addChild('tut_hedra.wrl') newhedra.setScale([0.1,0.1,0.1]) marker = body1.getMarker(x) position = marker.getPosition() newhedra.setPosition(position) |
|
#2
|
|||
|
|||
|
You can link an object to the tracker:
Code:
viz.link(body1,newhedra) Code:
def updateHedra(): marker = body1.getMarker(x) position = marker.getPosition() newhedra.setPosition(position) vizact.onupdate(0,updateHedra) |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 11:58 AM |
| Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 11:46 AM |
| Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 11:46 AM |
| .3DS importing in Vizard and 3D Studio | jde | Vizard | 1 | 08-28-2009 04:14 PM |
| Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |