Group midi ports / devices on inputs

Is there a way to group midi input ports / devices and then select them as an input device?

So for example set up a midi track so that it only receives midi from two devices and ignores the others?

Currently I can only seem to select one device or “all midi inputs”…

You can define what belongs to “all MIDI inputs” and what not.

Thanks . That’s a good start. I’d forgotten about that.

I’m wondering if there’s a way of setting up presets with certain devices in the presets? Or maybe an external app might be the answer? Some kind of midi routing thing?

Divisimate? Bome midi translator?

Or maybe I can use input transformer?