Filtering a parameter

Yes there is.

Load any Anima preset and inspect the script. It’s using only a subset of available filters. Then you can apply the same logic to filter shape or any other parameter that is using indexed string array.