batch swap "bitmap map" from "self illumination" to "diffuse"

Are there already scripts for similar functionality?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

not sure is there a script

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
*/

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.