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

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/8663f79e-76c4-4842-9e66-79d28e96e57cn%40googlegroups.com.

Reply via email to