MTuttle
05-26-2011, 11:10 PM
I'm trying to add a callback to my node for when one of it's attributes change but I'm getting this error before I even compile it:
IntelliSense: argument of type "void (multiParentNode::*)(MNodeMessage::AttributeMessage msg, MPlug &plug, MPlug &otherPlug, void *vpClientData)" is incompatible with parameter of type "MNodeMessage::MAttr2PlugFunction"
The line it's referring to is:
MNodeMessage::addAttributeChangedCallback(myNode, AttrChangedCB, NULL, &stat);
Can anyone tell me what's going on?
Edit: Never mind, looks like you aren't supposed to put your callback function inside a class/header or something like that...
IntelliSense: argument of type "void (multiParentNode::*)(MNodeMessage::AttributeMessage msg, MPlug &plug, MPlug &otherPlug, void *vpClientData)" is incompatible with parameter of type "MNodeMessage::MAttr2PlugFunction"
The line it's referring to is:
MNodeMessage::addAttributeChangedCallback(myNode, AttrChangedCB, NULL, &stat);
Can anyone tell me what's going on?
Edit: Never mind, looks like you aren't supposed to put your callback function inside a class/header or something like that...
