[Closed] Instance diffuse maps to self illum slots ?
Hi. I was wondering if there is a way to tell max, through script, to instance all diffuse maps to the self illumination slot of each material in the scene ? I have a scene with hundreds of texture baked objects, but the map is assigned to the diffuse slot only. I am trying to avoid doing this task manually, of course. Any help/snippet of code would be appreciated. I have zero knowlege of scripting. I am mostly a lighting/shader guy.
Regards,
Mike
Hello,
I’m assuming your materials are “Standard” , if so try selecting all objects in question and apply this (in maxscript listener):
for i in selection do (i.material.selfillumMap = i.material.diffuseMap)
if you want to actually activate self illumination use:
for i in selection do (i.material.useSelfIllumColor = on)
Best regards
Thanks a million for the response. Worked like a charm. I wish I could find the time to learn scripting/rsl…
Regards,
Mike