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.
Comments (2)
Comment policy
Your workflow is wrong. You don't need and you don't want one material for each udim. 40 difusse udims share only one shader, not 40 shaders
Check this tutorial.
http://www.neilblevins.com/cg_education/multiple_uv_tiles/multiple_uvs_t…
You have to change create multi-subobject material for composite map, and move offset of each bitmap. In mari 1001 is u0,v0 in max, and 1002 is u1,v0 in max......
Check this to see better
http://bneall.blogspot.com.es/p/udim-guide.html
If you change your script to create a compositeMap it would be very useful. Now is a wrong workflow
Hey, Zarko.
Thanks for the credits. :)