Hi, I have a question about PySide2 undo/redo in Maya. I read a discussion here in group about using undoInfo <https://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/undoInfo.html> command but what if my GUI has to interact with many methods? How can I create an undo/redo for all of them at once?
On Tuesday, June 3, 2014 at 4:19:02 PM UTC+2 Marcus Ottosson wrote: > Hi all, > > I’ve mocked up a method for serialising paths of widgets within a > hierarchy of widgets into a Unix-style path, that can then be de-serialised > back into its original widget. > > Motivation is to be able to reference widgets within deeply nested > hierarchies, both for better understanding and debugging but also for > undo/redo and messaging. > > I’m calling it *qtpath* for the lack of a better name. Before I make a > big deal out of it, I wanted to reach out to you guys in case you’ve > encountered anything similar, have ever found the need or can think of > alternative methods of achieving the same goal. > > https://github.com/abstractfactory/labs/tree/master/python/pyqt/qtpath > > >> qtpath.abspath(window, button)'/Win.Demo/Body.QWidget/Button.QPushButton' > > Let me know what you think. > > Best, > Marcus > > -- > *Marcus Ottosson* > konstr...@gmail.com > -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6f796b25-4ccd-441b-b963-3ed6ba7a039fn%40googlegroups.com.