FORUMS: list search recent posts

Rendering question

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Wagster
Rendering question
on Apr 25, 2005 at 10:54:33 pm

I would like to render individual elements in my scene separately, so I can apply tweaks in compositing. However, I am using ray tracing so I want to get the reflections of the objects that I am not rendering. The only way I know of doing this is by turning off the primary visibility of all the objects I am not rendering, but this is very labor-intensive. Is there some quicker way of doing this? Thanks in advance!

Will animate for food


Return to posts index

Sean Fennell
Re: Rendering question
on Apr 26, 2005 at 12:21:03 am

There is an interface called the Attribute Spreadsheet which lets you change properties for lots of objects all at once. Window -> General Editors -> Attribute Spreadsheet. Select all of your geometry you want to turn primary visibility off for. they'll load into the attribute spreadsheet. Select the Render tab in the interface and you can select the whole column for Primary Visibility and set it to off. All the objects will be changed at once.


Return to posts index

Sean Fennell
Re: Rendering question
on Apr 26, 2005 at 12:21:32 am

Alternatively you could create a renderlayer and in the render globals set that render layer to be a reflection pass.


Return to posts index


Wagster
Re: Rendering question
on Apr 26, 2005 at 12:22:39 am

Thanks a mil.

Will animate for food


Return to posts index

Geoff Bailey
Re: Rendering question
on Apr 26, 2005 at 2:43:59 pm

Here's a MEL script I wrote to toggle primary visibility on and off (along with casts shadows and receive shadows). Just select objects and run script.



// This script will toggle on and off attributes (castsShadows, receiveShadows, primaryVisibility)
// for selected transform nodes.

// creates a process for changing attribute settings
proc changeAttribute(string $currentAttribute)
{
int $isTrue = `getAttr $currentAttribute`;

if($isTrue == 0)
{
setAttr $currentAttribute 1;
}
else
{
setAttr $currentAttribute 0;
}
}

// get list of shapeNodes for selected objects
string $list_selected[] = `ls -sl -dag -lf`;

for($currentObject in $list_selected)
{
// sets variables for attributes for $currentObject
string $targetCastsShadows = $currentObject + ".castsShadows";
string $targetReceiveShadows = $currentObject + ".receiveShadows";
string $targetPrimaryVisibility = $currentObject + ".primaryVisibility";

// run "proc changeAttribute" for each attribute
changeAttribute($targetCastsShadows);
changeAttribute($targetReceiveShadows);
changeAttribute($targetPrimaryVisibility);

}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]