Ignore unassigned materials
I was playing around with a some maxscript and thought I would try and print the name of all the scene materials. I use the code below
for i in scenematerials do
The problem is it still prints material names that were assigned at some point but have since been swapped out for another material. I don't mind keeping unused materials in the material editor should I change my mind, but I just wanted to print the materials which are currently assigned in the scene.
Does anyone know of a way around this?