API Question: Is it possible to use the API to start/stop a take recording?

Post Reply
lehthanis
Posts: 7
Joined: Mon Jul 11, 2022 9:59 am

API Question: Is it possible to use the API to start/stop a take recording?

Post by lehthanis »

I am running a study with multiple data collection programs simultaneously running, and I'd like to automate the record button function...If I can create an app that will start/stop the recording of a take, that would be super helpful.
steven.andrews
NaturalPoint Employee
NaturalPoint Employee
Posts: 737
Joined: Mon Jan 19, 2015 11:52 am

Re: API Question: Is it possible to use the API to start/stop a take recording?

Post by steven.andrews »

Hi lehthanis,

The Motive API does not contain any functionality for recording, but you can use the NatNet SDK to send remote commands such as Start and Stop.
Here is a link to some more information.
https://v30.wiki.optitrack.com/index.ph ... e_Commands

Cheers,
Steven
--
Steven Andrews
OptiTrack | Director, Support Engineering
help.naturalpoint.com
wiki.optitrack.com
support@optitrack.com
lehthanis
Posts: 7
Joined: Mon Jul 11, 2022 9:59 am

Re: API Question: Is it possible to use the API to start/stop a take recording?

Post by lehthanis »

Thanks steven! Very helpful! I was barking up the wrong tree.

I noticed it required that I turn on the data output in the streaming panel in motive to be able to connect...will this client/server communication work in conjunction with my existing setup that is streaming data to the OptiTrack OpenVR driver?
steven.andrews
NaturalPoint Employee
NaturalPoint Employee
Posts: 737
Joined: Mon Jan 19, 2015 11:52 am

Re: API Question: Is it possible to use the API to start/stop a take recording?

Post by steven.andrews »

My pleasure!

You can have multiple clients connected to Motive, so I do not imagine using one to send remote commands should interfere with the other. The streamed data should still be received in OpenVR.

Cheers,
Steven
--
Steven Andrews
OptiTrack | Director, Support Engineering
help.naturalpoint.com
wiki.optitrack.com
support@optitrack.com
lehthanis
Posts: 7
Joined: Mon Jul 11, 2022 9:59 am

Re: API Question: Is it possible to use the API to start/stop a take recording?

Post by lehthanis »

That's awesome news! I'm about to embark on an awesome research journey then. Thanks much!
Post Reply