Hi everyone, I have a Gui created from using Qt where it has widgets that creates locators (populated as part of a list item in QListWidget) and interacts with some of its attributes (eg. the TranslateXYZ + Local PositionXYZ)
In maya context, you will be able to perform n times of undo. But my question here is how can I make undo to happen within the Gui? Currently, if I have made changes in (assuming by default the line edit starts with 0): - Set 10 in the translate x line edit - Set 5 in the translate y line edit If I tried to press 'Ctrl+Z' where the translate y line edit is in focus, it is able to change the value from 5 to 0. However if I go to the translate x line edit, nothing happens and the value still stuck at value of 10. Or if I have made a button that says "Key Selected", while it does keys the attribute, however when using Undo, I have to hit Ctrl+Z multiple just so to 'remove' the key that I have set. Is there a better way in which I can try adopting that allows me to do undo more efficiently? -- 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/f45639cb-6794-4a16-b42c-377218b80246%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.