Why are there non-visible objects in my final render? Have Blender on about 4 machines rendering animations.
Just spotted on one of the machines its rendering something different from the actual scene that I have setup.



Top window shows a different set of layers objects to whats actually being rendered in the rendering window below.

In my scene contents, layers objects 1-5 are not visible, but these are the ones that look like they are being rendered.

The only thing I can assume is that perhaps it might be because I did not save the document before clicking render, but I would not have expected that behaviour (you dont need to save your word document before printing it).

Can anyone confirm why this is happening?
If you look at the outliner, some eye-icons are faded out to indicate that certain objects are hidden.

But there's hidden and there's hidden: hidden in the viewport (eye-icon), and hidden for rendering (camera-icon).

You may paste the following code line to the Python Console (at the bottom of the Scripting view) and hit return, to make the render visibility match the viewport visibility automatically:

for ob in bpy.context.scene.objects: ob.hide_render = ob.hide