Looking for a function which returns a list of all UV shells from a selected object. Most of the stuff I found on the internet is a bit hacky and doesn't end up working well. I read through the official docs and I couldn't find anything like this so it makes me wonder does it even exist. Basically I would need a list of those UV shells and to be able to select faces/verts/edges inside of it.
MEL solution is fine aswel.
Using Maya 2018 by the way.
Replies
[{u'map1': {0: [[0.0, 0.0], [1.0, 0.0], [0.0, 1.0], [1.0, 1.0]]}}]
0: - Representing first shell
[0.0, 0.0] -1st point
[1.0, 0.0] -2nd
[0.0, 1.0] -3rd
[1.0, 1.0] -4th
Now I managed to iterate through this and obtain each UV shell and its respective UVs.
Now the problem is using this data to obtain UV selection again. This needs to be put in a way that cmds.select() can understand.
Cheers man for that