Is there's a way to get the indices properly from a Pymel/Maya API function?
I know Pymel has a function called getEdges()
however according to their docs this get's them from the selected face, however I just need them from the selected edges.
Is this possible?
While your answer will work theodox, I did find a much simpler resolution, after some serious digging!
Turns out, hiding and not very well documented, was a function ironically called
indices()
, I did search for this but nothing came up in the docs.Pymel
selection[0].indices()[0]
The above will give us the integer of the selected edge. Simple and elegant!