Are there already scripts for similar functionality?
Forum topic · Scripts Wanted
batch swap "bitmap map" from "self illumination" to "diffuse"
By raymarcher · 2011-10-04
Description
Comments (1)
Anubis · 2011-10-04
not sure is there a script for this task, but if not, here is a bit of help:
-- Note: getClassInstances function was fixed in Max 2011
-- Also in Max 2011 was added new optional arguments
-- (check "getClassInstances" in the help for details)
allStdMats = getClassInstances standardMaterial
-- loop through and swap:
for m in allStdMats do (swap m.maps[1] m.maps[5])
/*
m.maps[1] -- #diffuseMap
m.maps[5] -- #selfIllumMap
*/