Returning the current selected connection in Node Editor?
I'm coding a bit of ui in PyMel to make connecting nodes on the fly a bit easier, and I'm curious if anyone knows a way to return the nodes/plugs information based on a selection of the connection curves in the node editor. There doesn't seem to be a lot of examples in the documentation for the node editor, and everything I've tried so far is giving me nothing. It looks like the node editor is one of the few windows PyMel doesn't have a dedicated class for.
Pymel NodeEditor
Maya Help on NodeEditor
By the looks of it one should be able to get this from either the "highlightList" or "selectionList" but I didn't manage to get it work. Hope you solve it because I gave up on something similar.
I remember some time ago I had a look at things that I can do in the node editor, but I didn't find a lot, so I kind of left it there. That being said, I'd imagine that you could be able to retrieve some information using PySide.
Unfortunately, I doubt there is an easy to use interface for it anywhere in
pymel
orcmds
, but if you find anything, please share it.