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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2003   #1
Shader attribute change based on object selection

Hai

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....

thnx

ALES
 
Old 04 April 2003   #2
See: makeMatteObject on www.highend3d.com.

-jl
 
Old 01 January 2006   #3
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 01:22 AM.


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