Monitor changes to scale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm using MDagMessage::addWorldMatrixModifiedCallback() along with MatrixModifiedFlags::kScale to monitor for changes to scale and update the render representation and remesh things like this.
However as it happens, this callback fatally crashes Maya 2020, and only Maya 2020. The callback needs nothing actually inside of the function body to fail, just being present has Maya crash with a stack trace related to TBB and parallel evaluation; far beyond the reaches of my code. That said, the callback works fine in DG evaluation mode. Tested with 2018-2022, breaks in Maya 2020.3 and 2020.4.
I don't expect a solution to this - although if someone can think of one that would be great. Worst case I'd like to find an alternative. Is there another way to monitor changes to scale, that doesn't involve this callback? Ideally indirect changes too, e.g. from a parent being scaled. It can be hacky, I don't mind.
Thanks!
Ps. attaching stack trace from release build without debug symbols.
The crash happens when my custom node is parented to a group which is driven by a parent constraint.