Hello, I am looking for a solution on a problem I can’t seem to get right.
I have a selection of 3 objects. Each have a UVW_Modifier on them already, so I don’t need to worry about that.
What I want to do is press the “Pack Together” tool after I have selected the Element of each object one by one on a loop that ends when i get to the end of my selection of objects.
The reason for this is so that I have a nicely stacked pile of uvs on top of eachother, rather than them all compact into the square seperated (helpful for procedural uving), and they do not scale.
Here is my code, can someone assist in what I am doing wrong?
(
(
(
global EUUTool = “Element UV Packer”
theObjs = selection as array
max modify modefor obj in theObjs do ( select obj unwrapMod=Unwrap_UVW() modPanel.setCurrentObject unwrapMod selection[1].modifiers[1].pack 1 0.02 true false false ) ))
)