How to hide a group inside other

Hello Guys, I’ve updated a code of an extension. This extension, hide the unselected groups and create ortographic views of the selected group. BUUUT, i’ve a doubt. When i wanna to hide a subgroup, it’s doesn’t works. When my groups is inside other, the plugins hides all.

I’m trying to create a array, to memorize all ids and just mantain the selected Id visible, but doesn’t worked :confused:

HideToDetail.rb (3.9 KB)

How does this topic relate to the other topic ?

(Please keep related questions in 1 topic thread. Do not double post.)