CODE
def postConstructor(self):
thisNode = self.thisMObject()
cID = OpenMaya.MNodeMessage.addAttributeChangedCallback(thisNode,attrChangedCB,None)
callBackIDList.append(cID)
cID = OpenMaya.MNodeMessage.addNodeDestroyedCallback(thisNode,nodeCleanUpCB,None)
callBackIDList.append(cID)
#callBack procs
def attrChangedCB(msg,srcPlug,destPlug,clientData):
print msg
if msg == OpenMaya.MNodeMessage.kConnectionMade:
pNode = OpenMaya.MFnDependencyNode(srcPlug.node())
def nodeCleanUpCB(clientData):
OpenMaya.MDGMessage.removeCallbacks(callBackIDList)
my postConsctructor method is in my node class, and the CB live outside...no matter what I try these callbacks are registering but not firing off....any ideas guys? Ive tried almost everything I can think of.
tony