Hey again I was back to this after a while and I was wondering how I go 
about hooking the MDGMessage.addnoderemoved to the signal. Is this a 
plausible way of accessing the MMessages? 

Signal in constructor
itemRemoved = Signal(list)

connection from signal to statusBar
def update_statusbar2():
     txt = '%s deleted.'
     self.statusbar.showMessage(txt)
self.itemRemoved.connect(update_statusbar2)

emitting the signal
def emit_itemdeleted():
    self.itemRemoved.emit(
        pmc.selected())
OpenMaya.MDGMessage.addNodeRemovedCallback(
    Node, update_statusbar2(),emit_itemdeleted())

according to the docs you give a node, a function and clientdata ( I think 
i have done that here. But even if this is correct wouldn't this mean that 
I only send the signal for the given Node (hardocded).

I am looking for a way to dynamically show the name of the removed item on 
the statusbar which is why I have pmc.selected there because i thought it 
would reflect on the signal and then show the MDGMessgae from that.

Any help along here would be great with some kind of reference of a snippet 
of code how i would tackle this. there is practically no help on line for 
any of this at all like it isn't used.

thanks

-Padraig


-- 
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/69c2b96f-644b-4d66-9859-623bc019250f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to