Filter to exclude certain branches of my tree

I posted on another thread wanting to do something similar.