Purge Unused Materials
A simple macroscript to delete all unused materials from the Compact Editor Material Slots AND the Slate Material Editor Views.
The Compact Editor Code is from the existing Macro found under the Compact Material Editor "Utilities" menu.
I have added the code to also purge the SME at the same time.
You might want to check out the "Purge Empty Layers" macroscript as well. There are some awesome scene management tools out there but these are both small, simple tools without a lot of overhead for doing a little housekeeping before saving your file.
See the included README.txt for installation instructions.
Reminder, this is a macroscript for quick access from the UI.
Update ver. 1.1:
Fixes an error message when running the script without ever having opened the Slate Material Editor. Thanks to user appius for pointing out the bug.
To install: Remove the older macro and any UI references and then install this one following the same directions included in the README.txt inside the zip.