Hi, with mel there is a command 'connectControl' that would link the output of, say, a mel float slider, to say, the translateX attribute of a node in maya.
in my project, i am dual subClassing a QObject and QGraphicsItem. adding my own signal to the resulting item that is triggered when the item is moved around in a QGraphicsScene, and now i want to connect that signal to the translateX of a node in maya. I could just re-implement the QGraphicsItem.itemChange function and inside that, call setAttr on the translateX, but this seems ugly and possibly slow since setAttr is less direct than connectControl would be. I could maybe use the maya API equivalent of setAttr in the same scheme.. but would that be any faster? I would like to avoid a literal callback mechanism inside my object's event handlers. what i would like to be able to do is exactly what connectControl mel command does, connecting the output of a widget to an attr in maya.. but instead, using the signal and slot mechanism of QT. is there a way to define a node.attr in maya as a QT slot? ---that would be awesome---. is there something like a pymel "QConnectControl" command that i am missing? thanks for any help on this. - -- http://groups.google.com/group/python_inside_maya
