[Closed] Instance map to selected objects' selfillumination map slot
Hello everyone!
I have a question: How can I instance one map (let’s say meditMaterials[1] = falloff ()) to all materials (which are more than 24!) of the selected objects in the scene?
Thank you very much!!!
Greets
vertigo
HI,
here is an example for the Reflection Map:
MyMap=falloff ()
for obj in selection do Obj.material.reflectionMap=MyMap
note: all selected objects should have a material
(should work for standard materials)
Thanks Zbuffer, the script works with the Standard Materials! :applause:
Unfortunately as soon as I have selected onbects with Multi-/Submaterials, the script stops working. Any ideas? :rolleyes:
Thanks!!!
Greets
vertigo
not on my pc with max on it to test it, but i think it’s something like this:
MyMap=falloff ()
for obj in selection do
(
for n = 1 to obj.material.materiallist.count do
(
Obj.material.materiallist[n].reflectionMap=MyMap
)
)
but i’ll check at work tomorrow.