Hi all,
ok I'm fairly sure this is a big NO. but Ive been trying to find a way to list the connections highlighted inside maya''s nodeEditor. basically looking for the
cmds.ls() equivalent.
ned = mel.eval("getCurrentNodeEditor;")
print(cmds.nodeEditor(ned, q=True ,sln=True))
this will get the selected nodes in the editor but
print('this', cmds.nodeEditor(ned, q=True ,selectionConnection=True))
returns None if connections are selected..
however by the looks of things, selectionConnection is an entirely different thing.
cmds.connectionSelection() seems to be a way on linking UI object selections.?
there is little info to get how maya is getting the connections if say you select the connections in between node and "delete" them within the NodeEditor.
nodeEdKeyPressCommand "nodeEditorPanel1NodeEditorEd" "Del";
is what maya prints out but nothing else to follow up on..as the nodeEditorPanel.mel really only exec "nodeEditor -e -del $ned;".
anyway has anyone managed to be able to fined a way to list the connections selected in the nodeEditor.. even Hyper graph selection would be ok if that was posible..
cheers
john