PDA

View Full Version : how do you [quickly] turn off displacement?


j00ey
08-26-2003, 11:42 PM
just an easy one for whoever know...

i've got a model in parts and to speed up render times i need to toggle displacement on and off for different parts. i have tried turning the displacement shader node's behaviour to 'has no effect' but it still has an effect.

i can always keep detaching / reattaching the nodes in hypershade, but i'm presuming there's an easier way.

thanks

j00ey

svenip
08-27-2003, 01:51 AM
what about a nice little script which looks for all displacement nodes :

string $selection[] = `ls -type "displacementShader"`;

and then for each found look for the incoming connection on the displacement attr

for($each in $selection)
{
string $connections[] = `listConnections -s ($each+".displacement")`;

}


and then just set the alpha and/or the color gain of the incoming texture file to black.

before that you might wanna store the actual values in a custom attribute created by you.

j00ey
08-27-2003, 03:01 AM
thanks svenip
i'll try that
j00ey

CGTalk Moderation
01-15-2006, 11:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.