Hiding objects from render

I have a question:

Objects that are hidden in the 3D view still show up in renders. In my work with a motion graphics utility script (discussedhere), I’ll need to hide objects in both the viewports and any renders.

I could swap the material out with, or set the alpha to 0, as all the different objects will have a separate material. I could move them on hidden layers, but that’s not very user friendly and might cause confusion. I could also temporarily move them offscreen during renders.

All these are hacks, though, so if someone knows a standard method, I’d appreciate it. Any ideas for this?

Use the outliner. You got options to show or hide your objects. The third button lets you set “renderability” on/off for each of the objects in your scene:

Thanks for the info - I’ll see if that’s accessible from Python.