Force evaluation of MPxSurfaceShape with MPxGeometryOverride
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi !
I have a custom MPxSurfaceShape node. This node does not output any relevant plugs to Maya. Instead it has a MPxGeometryOverride that draws from internal data stored on the node.
My main questions are :
1 - How do I make MPxSurfaceShape compute() trigger when any of the input attributes change, even though there is no output attribute to "affect".
2 - How do I correctly notify MPxGeometryOverride that the shape node has changed, and needs to be redrawn ?
This may be trivial but I have looked in every SDK example i can find and they all have different and half explained methods that sometime work, sometime don't. I am looking for the modern way to do this, it has to support DG, Serial and Parallel.
Surely this must be possible in a clean manner ?
PS : I have seen examples using a dummy output attribute, that is pulled from the MPxGeometryOverride to trigger the compute, this sort of works, but unreliably it seems ? The SDK "footPrintNode_GeometryOverride" mentions a "Technique 1.1" but this technique is no where to be found, only technique 1 is implemented, and comments in the code seem to indicate it is not ideal ?
Thanks !
Alex.