I am not saying that its needed but you can a little bit simply or change your script like the following. Oh and i noticed that you script does not work well with multiple objects selected because it processes the UVW mapping with all objects selected whereas it should be only applied to the loop element, so I added…
yup all you need is the maxscript listener and enable the macro recorder to listen to your commands (well most of them) noticed this little thing at the lower left corner of max? it is the maxscript listener but in a compact mode, for the real deal press [F11] or alternativly find it here: and this big version appears: the…
Okay, so when I worked in maya I would make myself little macro type mel scripts all the time for operations I found I needed to repeat often (ie. scale -1 on one axis, freeze transforms, invert normals). I would do this by turning on the 'echo all commands' option and watching what was output, then changing this until it…