Page 1 of 1

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

Posted: Mon Jul 11, 2022 10:02 am
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.

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

Posted: Mon Jul 11, 2022 2:28 pm
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

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

Posted: Tue Jul 12, 2022 9:31 am
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?

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

Posted: Tue Jul 12, 2022 10:06 am
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

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

Posted: Tue Jul 12, 2022 10:11 am
by lehthanis
That's awesome news! I'm about to embark on an awesome research journey then. Thanks much!