PDA

View Full Version : Is there a way to select objects by a shader


Undseth
06-07-2003, 09:49 AM
Hmm, never had to select this way, but I wonder if one can select objects in the scene, in which a specific shader is used on several objects in the scene?

Thanks!

mark_wilkins
06-07-2003, 09:58 AM
Shaders have associated sets of objects called shading groups that collect the objects to which the shader applies. If you find the shading group for the shader, you can query what's in it.

-- Mark

Jozvex
06-07-2003, 11:10 PM
I think there's a button to do that somewhere in the Multilister too.

chk
06-08-2003, 01:35 AM
Right click on the shader and there's option, "select objects with material"

mark_wilkins
06-08-2003, 01:37 AM
heh sorry I was thinking about how you would do this in MEL.

-- Mark

ktpr
06-08-2003, 02:32 AM
see Danny's UV tools at highend3d.com. Specificly:

eval("select -r " + $objList[$o]);

// Get list of shading groups on object.
$sgList = `listSets -type 1 -ets -o $objList[$o]`;

// Get list of all materials connected to shading groups.
$materialList[$s] = `connectionInfo -sfd ($sgList[$s] + "surfaceShader")`;

// select all faces with currently assigned material
hyperShade -o $materialList[$f];

cheers
ktpr

tonytouch
12-30-2005, 06:38 PM
thanx a lot for this great MEL-assistance .

maybe light-years too late , but anyway , i was just seeking for this INPUT .....

seven6ty1
12-30-2005, 06:45 PM
hypershade -objects $shaderName, I do believe.

CGTalk Moderation
12-30-2005, 06:45 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.