Can I record with the REC trigger?

Hi all.
Right now I am working on a patch for video recording and playback.
So my question is, I want my patch to record automatically with REC triggers emitted from the camera, but I don’t know how to do it. can I use NDI or something like that?

If anyone knows how to do this, I would greatly appreciate it!
Here is my machine environment.
Blackmagic miniRecorder

I think a CHOP Execute DAT with a little python script to turn on Movie File Out TOP “record” parameter is one thing to explore. I don’t know the Blackmagic miniRecorder…