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

Post Reply
lehthanis
Posts: 3
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 » Mon Jul 11, 2022 10:02 am

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

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

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

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: 3
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 » Tue Jul 12, 2022 10:11 am

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

Post Reply