Please tell me. How to remove unused materials in all objects if the objects are not selected?
I tried this code but didn't get what I wanted. This code does not remove unused materials in unselected objects.
How to remove all unused material slots from all objects?
Correction. All unused slots in all objects