Hello
I need to get full dagpath to currently deformed object (shape or transform) from inside deformer() or compute() method of MPxDeformerNode. I know this is heavy break of maya rules, but I'm willing to take a risk
Can anybody come up with a trick ?
For a case where there's only one deformer in history, I can get input mesh with this code (more or less):
MPlug outputPlug(thisMObject(), outputGeom);
outputPlug.selectAncestorLogicalIndex(geomIndex);
MPlugArray outputs_plugArr;
outputPlug.connectedTo(outputs_plugArr, false, true);
outputPlug = outputs_plugArr[0];
MFnDependencyNode mesh_dn(outputPlug.node());
This breaks as soon as I have smth else in hostory.
Anyone? Joojaa ?
thanks!