Problem of hide node

Here is my code,it hide some parts of a vehicle.I want it to reversed,hide whole body just show the main gun and mg(hide all node and keep main gun and mg).How should I change it?

Then you need to hide every single part except for this one

That’s what I did in begin,but each vehicle has hundreds of node.omg,any easy way?