Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 26-12-2008 , 12:58 AM
Registered User
Join Date: Dec 2008
Posts: 4

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?

Attached Images
# 2 26-12-2008 , 01:48 AM
ragecgi's Avatar
Registered User
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Set the Display Attributes for the box to:

Set Primary Visibility to OFF

Turn Visible in Reflections and Refractions to ON.


Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
# 3 26-12-2008 , 01:50 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
turn off the primary visibility on the box shape.... under render stats.


Edit: you beat me! :p

# 4 26-12-2008 , 11:52 AM
Registered User
Join Date: Dec 2008
Posts: 4
Thank you both! It works. Thank you for your fast replies user added image

# 5 26-12-2008 , 12:23 PM
ragecgi's Avatar
Registered User
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
No probuser added image

That's what we're here for.


Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
# 6 26-12-2008 , 02:33 PM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Instead of having to go to the attribute editor each time use this lil script I have handy for such tasks. Selct the objects you want to turn off in the Outliner and hit this script to turn off:

for($s in `ls -sl`)
{
setAttr ($s + ".primaryVisibility") 0;

}



and to turn them back on use this:

for($s in `ls -sl`)
{
setAttr ($s + ".primaryVisibility") 1;

}




NOTE: with regard to group nodes or parent nodes, IK, joints etc
splines, contraints....these must not be selected in order for the scripts to work, the scripts are geometry based only. But it still saves alot of time in the long run

Jay

# 7 26-12-2008 , 02:46 PM
Registered User
Join Date: Dec 2008
Posts: 4
I have a new problem :blush: . I imported a model as an IGES file and this file consists out of about 150 surfaces. I can now turn the primary visibility off for each surface individually because if I select a surface I can access its shape properties in the attribute editor. But I can't access all the 150 shapes together.

I included an image of my assembly tree as an example to make it a bit more clear.

Do you know how to make all the shapes invisible together instead of unchecking a lot of primary visibility boxes? user added image

Attached Thumbnails
# 8 26-12-2008 , 02:48 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Check out the Attribute spreadsheet.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 9 26-12-2008 , 03:20 PM
Registered User
Join Date: Dec 2008
Posts: 4
I clicked Window > General Editors > Attribute Spreadsheet and there you can edit whole columns.

And it worked. Thanks user added image

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads