madgodz
10-08-2007, 07:52 AM
after searching through the forum and looking at all the threads on this function call, I am still unclear on how to invoke it.
myNode has an an input and output attribute.
addAttribute(inTime);
addAttribute(filename);
attributeAffects(inTime, filename);
In myCmd::doIt(), I call:
MPlug inTimePlug = depNodeFn.findPlug(MString("inTime"),&stat);
which returns successfully. I have tried the following push/pull methods to get the myNode ::compute() function to invoke:
inTimePlug.setValue(frameNum);
MObject the_value;
filenamePlug.setValue(the_value);
Am I missing anything? Any extra connections need to be made? Am I supposed to use the MDagModifier?
myNode has an an input and output attribute.
addAttribute(inTime);
addAttribute(filename);
attributeAffects(inTime, filename);
In myCmd::doIt(), I call:
MPlug inTimePlug = depNodeFn.findPlug(MString("inTime"),&stat);
which returns successfully. I have tried the following push/pull methods to get the myNode ::compute() function to invoke:
inTimePlug.setValue(frameNum);
MObject the_value;
filenamePlug.setValue(the_value);
Am I missing anything? Any extra connections need to be made? Am I supposed to use the MDagModifier?
