This script extends and improves the functionality of the button in the material editor labeled "Select by Material". I was always frustrated by this button because to effectively get every object with a specific material applied I always had to unfreeze/unhide everything, and on heavy scenes, this proved to be difficult. Also, using this functionality is rough because it will only select the group head if an object that has the material applied is part of a group, resulting in me mistakenly assigning materials to whole groups.
This script allows you to select the material, click the button and have all the objects that material is assigned to selected (even if they are hidden or frozen), if the objects happen to be a part of a group, it will open every level of the group till it gets to the object with the assigned material, and select only it.

Comments (18)
Comment policy
I'm looking the same script but to select same materials that used by clicking on object without opening material editor, any idea?
I mean
1. select object which has material needed
2. click on script button
3. All objects that have material to the selected object will be selected.
Hope I could describe it in a good way.
other option
uv puppy is the solution in option material
.
Hi Colin,
No, I meant if I have a multisub-material that is assigned to a certain amount of objects.
Now, I want to find the objects that have a certain sub-object material assigned to them.
.
Hi!
Could you please improve your script so that it can select what object uses a certain sub-object material?
Currently, I use this solution:
http://www.polycount.com/forum/showpost.php?p=1521792&postcount=12
... that creates a multi-sub-object material for all items in the scene and gives the items an equivalent material ID.
Now, the tricky part is to find the item that uses a certain material ID.
@fajar: regarding "Select by material without open the material editor". I cant make the code work.
Could you please help out?
I run this script on the entire object (with the multisub material) then I usually just go into face selection mode and click the face I need the material for and check the id manually.
Awesome !!!!
I am a former Maya user and this functionality is painful missing in Max. Simply select all objects with a certain material assigned. How can you work without? How else can you replace materials? Max is strange
thanks..another useful n efficient way from you :)
Glad to hear. This is one script I really really use alot.
Max 2012
Colin, is it possible to make this useful script work on Max 2012? I've tested and it seems it's nonworking there.
Thanks for your time and effort.
2012
Yeah, let me get my hands on 2012, and I'll see what I can do.
-Colin
good tool ,trying
Select by material without open the material editor:
rollout MapBySel "Misc Tool"
button MapSel "Selection" toolTip:"Click: Select by Material"
on MapSel pressed do
(
if selection.count==1 then
(
select (for o in objects where o.material==selection[1].material collect o)
)
)
CreateDialog MapBySel
good tool
Yay Colin, yet another one of the "why isn't this hotkeyable, lets go see if anyones made it already" script ideas that you have already done.
Thanks
Yeah right? I've got a ton of em, that honestly...should be standard by now. I love this script, I probably use it more than most.
Good hearing from you vsai.
-Colin
Also Fajar, mine does multiple objects as well, it's pretty handy.
Thanks a lot wine3d! I'm glad you've found it. (It really has helped my workflow a lot too :))
-Colin
good tool!