On Tue, Jul 9, 2019, 5:49 AM likage <dissidia....@gmail.com> wrote: > Hi Justin, thank you for getting back. > > As for the DockWidget() class method you have provided, sadly it does not > seems to be working for me. Getting the same issue (signal not getting > called) as soon as `self.ui.setupUi(self)` is implemented. >
Not sure. Maybe this? https://forums.autodesk.com/t5/maya-programming/catching-close-event-of-mayaqwidgetdockablemixin-in-maya2017/td-p/6717106 ----- > > I tried using the following in my main.py for the `cmds.undoInfo` as > follows: > > def create_custom_script_jobs(self): > ... > cmds.undoInfo(chunkName='MyTool_chunkName', openChunk=True) > > def remove_custom_script_jobs(self): > ... > cmds.undoInfo(chunkName='MyTool_chunkName', closeChunk=True) > > > It seems that I am the undo actions are not getting compress into 1 > action... Am I doing it wrong? > Also tried implementing the above code in my execution code, not seeing > any diff... > Using it this way will break your entire Maya undo functionality. You only want to open a chunk right before you execute a series of Maya commands and then make sure to always close the chunk again even if your actions raise an exception. You wouldn't want to open it and close it and two unrelated points in time. > ----- > Noted on the global usage for script jobs tracking. > > As for the selections, I made it that way because, I need to achieve 2 > things. > 1. Whatever that is selected in the Maya context (image planes in this > case), if found in the tool context, selects the said item in the tool > (which is under QListWidget). > 2. Selection made in the tool context - QListWidget (again, only the image > plane selection), will be selected in the Maya context if found. > > Basically a bi-directional selection between my tool and Maya. As you have > suggested, upon the removal of the `cmds.select` in the `plane_selected()` > seems to have did the trick in the key selection in Graph Editor! Thank you. > > -- > 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/d08aae7f-cf31-499f-b629-4e1b284874a9%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/d08aae7f-cf31-499f-b629-4e1b284874a9%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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3PTQaNHq%2BjH%3DvDJrL44GQ7_3R%2BKZFHbdTKCRWgHfZ0yQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.