Page 1 of 1

OptiTrack and Python

Posted: Tue Jul 08, 2008 11:18 am
by am128256
Hello,

I read in the manual that there is Optitrack support for Python but I cannot find any documentation, example code, or any form of help on getting started with programming with OptiTrack in Python.

Are there any resources that could help me or does anybody here know the import command for importing the OptiTrack SDK into Python?

I plan to use OptiTrack with a TrackIR camera to track the TrackIR head gear in order to allow a user to look around using their head in the simulation I am working on.

If nothing else, I can code in C++ and later wrap it in Python in order to make it work for my purposes, but it would take much less time and effort to just be able to code right in Python. Plus, there is supposed to be support for Python I just cannot find any starting point.

Thank you for your time.

Re: OptiTrack and Python

Posted: Tue Jul 08, 2008 2:15 pm
by Birch
The ability to use Python is mentioned because Python on Windows supports COM, which is how the OptiTrack SDK API is exposed. Unfortunately, we don't have any direct experience implementing it.

Re: OptiTrack and Python

Posted: Mon Jul 21, 2008 7:55 am
by am128256
Thank you for your reply.

What do you recommend as a starting point for writing a program that will use Optitrack to get TrackIR information for game input, then?

Re: OptiTrack and Python

Posted: Mon Jul 21, 2008 10:30 am
by Birch
There are a number of C, C++ and VB samples with source code posted to the OptiTrack download section that you might want to check out.