Hide an element in all inactive views

Since I didn’t want to hijack anyone else’s topic… I keep getting a traceback issue. Says the set of elements to be hidden is empty. The goal is to hide the selected level in all views except the selected view.