Hide Environement in Render
Hi,
I'm new to maya and to this forum and I'm having a problem when rendering a scene.
I have a sphere which reflects it's environement. The environement is a box with a hole and a sun and sky which shine through the hole. I included an image to give you an idea of the scene.
I'd like to be able to exclude the box from my rendered image while keeping the sphere and the reflections of the box on the sphere. I tried making two extra render layers where I put the box in one of the layers and make that layer invisible but in the render the reflections disappeared.
I am using Maya Mental Ray, Physical sun and sky, Raytracing and Final Gathering.
My goal is to be able to only have the sphere left (with reflections etc.) so I don't have to cut it out of its scene in Photoshop manually.
Do you know how to achieve this?