I’ve put together my impression of what was mentioned in the cult of rig video posted earlier.
- https://github.com/mottosso/apiundo *Example* from maya.api import OpenMaya as omimport apiundo mod = om.MDagModifier() mod.createNode("transform") mod.doIt() apiundo.commit( undo=mod.undoIt, redo=mod.doIt ) However I’m struggling to properly merge it with Maya’s native undo queue; the main contender is redo. Natively, once something has been redone, you can undo it again. I haven’t yet managed to find a generic method of achieving this. Other than that it remains largely untested. Could use some help on this one. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAmLLdnKHFW%3DzQPuZMDu67XNhH8QYHmPwXme-zfhBsQGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
