Try this:( ( -- catch selection to array othervise original for loop will not work local cleaningObjects = selection as array if cleaningObjects != undefined then ( -- we want maximum performance from our script so we make sure we are in create mode max create mode -- notify that we are starting print "Cleaning UV…
I'm working on a script that removes unneaded map channels from selected meshes. Right now it's coded to remove UV channels 2-4, vertex alpha & illumination - later I'll see if I can have a UI that asks what channels you'd like to keep and have it detect how many channels each object has. Now to the problem, I don't really…