I've got a loop that goes through all materials in the scene.
It then checks the diffuse slot if there's a bitmap:
I then set the diffuse map to "undefined" if I find a missing texture.
The current code works great, but this is now hard coded like this:
'o' is my current material in my loop.
o.diffuseMap = undefined
I'd like to scan each and every slot in the materials in a loop, instead of defining each slot type through script (Diffuse, bump, specular etc), but I'm stuck on how to go about doing that.