Astra pro and motionbuilder

Hi everyone, i’m a mechanical engineering student.

I’m trying to interfacing orbbec astra pro (with a program in visual studio in c#) with motionbuilder.

There is someone who has already done it and can help me?
I know that i have to make a .trc or .c3d file to import in motionbuilder but how i can do this?
I’m trying to do this manually with streamwriter but it’s a bit slow, i lose fps and also i don’t know the format of trc file.

I thank everyone for help