I have some objects that has material assigned with name “matA” this material has been copied few times and applied to different objects including some subobject. I want to replace all the “matA” in the scene with one new instanced “matB”
Don’t need to script it, in the material editor at the bottom of the shader balls there is a button to replace scene materials with a different one. Otherwise there are material instancer scripts on scriptspot.
this saved my a… many times. especially on big scenes when you merge a lot of objects into it and all materials are messed up. max does not always merge materials the right way, although the names are the same.