I've replaced my medit.mat
Im trying to import objects in a new max scene (with assigned materials) and have them use the material editor materials
My current script is:
mergeMAXFile "C:\\Users\\danc\\Documents\\3dsMaxDesign\\vpost\\brick.max" #select #AutoRenameDups #useSceneMtlDups
- but this checks the scene materials (which is empty)
Either this - or is there a way to have scene materials even though the scene is empty of geometry.
I've tried in startup a script I found here on scriptspot:
matLib = loadTempMaterialLibrary "C:\Users\danc\Desktop\medit.mat"
for mat in matLib do (
insMats = getClassInstances (classOf mat) target:sceneMaterials
for ref in insMats where ref.name == mat.name do replaceInstances ref mat
)
but the scene materials are still empty
any help appreciated