I want to replace all materials that share the same name with a single (selected) material instance. Not only the directly assigned materials but also nested materials residing in for instance; multi/sub-materials and corona layered materials and shellack and material blend material. The workflow would be: 1) select a…
Something like this should get you started (untested): sourceMat = case matEditor.mode of<br>(<br> #basic : mEdit.getCurMtl()<br> #advanced : SME.getMtlInParamEditor()<br>)<br><br>updateSceneMaterialLib()<br>mats = #()<br><br>for matType in material.classes do join mats (getClassInstances matType)<br>for mat in mats where…