MIDI FILTER TOOL: Block selected MIDI messages
Tap a pad to select it and cycle through blocking modes of the labeled message type.
• Green = Allow All, Red = Block All
• Notes, Channels, CC’s, and Clock have Yellow = Selective Block. In this mode the first knob allows to select the individual Channel, Note, CC, or Clock message type to selectively block or allow each. Turn the second knob left of center to block and right of center to allow.
• Pressing SHIFT toggles a utiity mode for resetting selective settings for these pads with sub-selections. Tap a pad to clear it. Press SHIFT again to exit this mode if any pads are still highlighted.
NOTE: Bank Select messages are made by sending CC0 and CC32 together. Blocking Bank Select will block these CCs regardless of the CC blocking settings.
NOTE: Watch out for Channel Blocks. They override all message types except for Clock and Sysex.

Thx very much! This was the script I was waiting for.