I’m currently working on improving my toolbase, and one of the things I’m writing is a custom Maya node wrapper. The idea is basically to have a custom class, which returns full path on
__repr__, so it can simply be passed even to maya cmds functions. Along with, maybe, other basic functions.
But right now I’m not sure which would be the best approach - store MDagPath or UUID of the object?
I’m curious to know about other people’s experience on this matter, about whether UUIDs are used (built into Maya since 2016ish or custom) and if so - how, what pros and cons they have compared to using MDagPath for this matter.