I’ve had Node Wrangler installed for years but haven’t needed to use it much. However one of the main things it has helped me with is to clean out unused material slots. Because I haven’t needed it in a while, I can’t recall the keyboard shortcut to clear unused material slots.
I have a large file that is unusually laggy that is built from parts of several other large files that i have not had lag issues with. I am trying to find the causes. In the past, I have found that “bad” materials/textures can through up processing issues so I am trying to eliminate those issues but can’t find the Node Wrangler keyboard shortcuts for this.
Thanks for the reference, however I can’t find the shortcut I am looking for.
The shortcut opened a small dialog box menu with maybe 6-8 options with one being to “clear/remove unused material slots” but I can’t recall how I used to find it.
I am guessing it must have been from a specific panel in either edit or object mode. I’m still using 2.83 and haven’t updated for awhile so I don’t think it is a redundant option in my version
Click the little drop down menu to the right of the material list. It is in there in the current version. That may be where the shortcut pointed.
It is in that drop down menu no matter if Node Wrangler is active or not.
Thanks @Matakani and @DNorman that was one method I recalled. I appreciate the help. It also assisted me in finding the keyboard shortcut which was listed in that dropdown menu.
In object mode with an object selected: > Shift + Q
I have a fairly large and complex file with hundreds of objects that I need to clean up. Is anyone aware if there is a method to perform the “Remove Unused Slots” action on multiple objects? Or perhaps a python script that would allow me to step through every object and perform the process on each?
Hmm My cursor has vanished from my screen capture… Imagine I am doing that circle motion meaning look here - in the Orphan Data area the second time I go there…lol
I think that Orphan data will not get rid of the unused slots because even if they are not assigned to faces they do have a user (the object that has that slot)
The built in addon “Material Utilities” has this option, use with care!
Enable the addon.
Select all the objects you want to clean, hit “Shift Q” to start the addon and hit the “Clean Material slots” button.
A pop up will appear at the bottom to chose between only active or all the selected objects.
A few other gems from that developer, too… for $20, it’s an awesome package. He’s already added 3-4 new addons to the full pack since I bought it (free upgrades there, too.)
AHA! That’s exactly what I was after @DNorman thank you. I had forgotten about the bottom left dialog box but I knew it was possible. That box doesn’t appear for me from the materials drop down mentioned earlier but only using Shift + Q and why I was keen to find the keyboard shortcut.
Yes it is part of the add-on, I forgot to mention the “shift Q” shortcut to invoke the addon, sorry. I will edit my post for anyone who reads it in the future.