Hi guys,
I'm having some trouble creating a script with which I can unwrap multiple objects that share the same UV layout. I can achieve it all by hand, but I want to automate it for future use.
I can create a script that flattens per object in the selection, but I want to use FlatIron for packing. And when you flatten objects individually, the elements don't get sized reletive to each other when FlatIron packs them all together.
I tried flatten the objects without normalising enabled so they assume worldspace coordinates (or something like it, they extend very far beyond the boundaries), but that also doesn't generate usable uv's when packing it with FlatIron.
By hand I would do it like this: select all object that I want to share uv's, apply uvw unwrap modifier, open editor, select all faces, flatten quick and dirty, collapse modifier, open FlatIron, pack existing uv's and collapse. That's basicly what I want to do by script. But for some reason it's not very simple to do it seams.
Replies
for whoever is interested, here's how it works: