How to export a specific midi pattern with cc data?

Hi everyone,

In a current project, I want to export only a specific midi pattern, not the entire midi content of my session. I tried using File > Export > Midi File, but it exports all the midi tracks in the project, which is not what I need.

I’m also wondering if it’s possible to export the CC modulation data along with the midi pattern. I mean, when I import the exported midi file into another project, I want it to include the CC automation I applied, so it shows up directly in the timeline. So, does anyone know how to export just one specific midi pattern with its CC data included?