Apply uvwmapping to multiple object problem
Hi all, i want to make a mxscript that can apply box uvw mapping to multiple objects in my scene, the code i use below:
for i in selection do ( addModifier i (uvwmap()) i.modifiers[#UVW_Map].maptype = 4 i.modifiers[#UVW_Map].length = spn1.value i.modifiers[#UVW_Map].width = spn2.value i.modifiers[#UVW_Map].height = spn3.value )
it work fine for one object selected, but not working for more object selection, especially got instance object in the selction, it add more than one uvwmapping modifier on one object, please help! how can i apply just one uvwmapping to one object only even it is instance object with my script?
i hope you understand with my poor english.