Shader attribute change based on object selection

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  04 April 2003
Shader attribute change based on object selection


I am trying to make a procedure that will change the properties of a shader based on the selected objects.
For example:
you have a scene with a lot of objects and you want to make some of them (their shaders) a black hole. Currently I am using hypershade and Attribute spread sheet to do that. But since I have a lot of shots to perform this operation on it starts to get time consuming. I would like to automate that procedure in a way that I select the objects and the run the mel script that automatically makes those object's shaders from default Matte opacity to Black hole. Can you give me some tips how to do that? Currently I am stuck at a point where I want Maya to select the shaders that are on the objects I have selected in a scene. Any clues how to do that? When the appropriate shaders are selected it would be no problem to perform an action on them I guess.

Any kind of help really appreciated....


  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:28 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.