Editor Script to show/hide visibility of scene objects

Hi

Can anybody help start me off on how to have an Editor Script to show or hide objects within my scene?

I have a large building with many rooms and items and trying to work on it has become very difficult.

What I want is a way to quickly turn off (active state) a group of objects or turn them back on without having to go through the inspector and finding them all manually.

Thanks for any tips.

Ah wow, never mind…didnt realise it was so easy…

@MenuItem ("Custom/myproj/Reveal Coridoor1")
static function RevealCoridoor1 () {
var gO = GameObject.Find("roof");
 gO.renderer.enabled = false;
//...more here
}
@MenuItem ("Custom/myproj/Reset All")
static function ResetAll () {
var gO = GameObject.Find("roof");
 gO.renderer.enabled = true;
//...more here
}