I am writing some simple scripts to aid in UV management and I am trying to use Maya’s Unfold feature. However, when I try to call the same set of arguments and flags that I am seeing in the Script Editor, calling Unfold from my script takes an order of magnitude longer than when I use the Unfold feature from the menu.
What I have come to realize is that querying the current selection behaves much differently than explicitly passing in which UV components to operate on.
From what I can tell, the Unfold Command seems to have it’s own Loop that triggers when passing in Components in a Flattened List… e.g., shape.map[li] is superfast, while [shape.map[0], shape.map[1], shape.map[2], etc…] is really slow and seems to be spawning a unique Unfold operation per component.
[/li]
Anyone have any experience with using the Unfold command, or can anyone help me condense an expanded list back to a packed list?
Thanks.