Precomputation in a custom Node/Deformer

32 views
Skip to first unread message
Assigned to matiinfa...@gmail.com by me

Matin Falahmanesh

unread,
Aug 23, 2025, 12:25:44 PMAug 23
to Python Programming for Autodesk Maya
Hi guys!
I’ve been developing a deformer in C++, and I have a workflow question before moving forward. i need to precompute a very large matrix (a Beltrami Laplacian) and some additional custom attribute data, but this should only happen once when the user clicks on something like "compute" in the deformer’s attribute editor.

I’m not sure about the best way to do this. I was thinking about using a custom attribute (I already have quite a few) and store the Eigen matrix there along with the other data, though I’m not sure how I’d handle readASCII readBinary in that case with Eigen.

Another option is to save it as a file alongside the Maya scene file, like xgen legacy does, but I feel like there might be a more Mayaish way to handle this.

Keep in mind, it’s not just the large matrix, there are multiple custom attributes as well.
If you guys have any suggestions or ideas, I’d really appreciate your input.
Thanks!
Reply all
Reply to author
Forward
0 new messages