This script is used in a specific workflow when exporting objects to Mari. It tiles up the UV patches (each row has 10 patches)
usage: In each UV patch there has to be unwrapped objects that have only one material assigned to them. And that material has to have "_tg" suffix in its name. When executing the script it automatically adds an unwrap uvw modifier, makes selectionSets based on those materials, and then tiles it up, and adds UDIM number (patch number from Mari) to each materials' name.