On Sat, Jul 6, 2019, 10:14 AM likage <[email protected]> wrote: > Thank you Justin. Will try out your method. > I have 2 questions here: > > 1. For the approach I have adopted - 'using scriptJob to track tool > closure' , is that still applicable/advisable? >
If it works, it works. Generally when it's your own UI you have a more direct way of knowing it was closed than Maya telling you a UI element was closed. > 2. And one more question - For the `undo` that I have implemented, eg. > perform an un-renaming process, I noticed that it takes me to press the > 'undo' combination 7 times just to get the name of the node back to its > initial naming, instead of the 1 time that I am expecting.... > > Any insights on this? > Could be that the operation that did the rename wasn't wrapped in an Undo group which would flatten all the operations into one undo step. > -- > 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/f2508104-18ae-430e-8616-c42bcd24a98f%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/f2508104-18ae-430e-8616-c42bcd24a98f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPGFgA1riEmebjwOsBmXpnDNH6cOtJM%2BA4jrjJPpt20LGB4OFA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
