Command for all objects?

Is there a script command to group all objects. I'm trying to make a command that sets all scenery variables to false at once without having to list each object and set its scenery variable to false.

At the moment I'm using "object.scenery=false" and listing each object like this...

Is there a command like "all.scenery=false?" or something like that?

You can do it this way:
scenery.png


But then you will have a problem, if you want to set the objects back to scenery. In this case you must save the name of the original scenery objects

Thanks for that! Works fine and I dont think I need it to switch back for now so its ok like this! :)