On Sat, Jul 6, 2019, 1:21 PM likage <dissidia....@gmail.com> wrote: > Thought I placed my files here as I could not really figure out the undo > or the graph editor selection... > > main.py - https://pastebin.com/aQL9Fvue >
Your scriptJob that tracks selection changes ends up calling your plane_selected() function which contains a call to cmds.select() You have alot logic running on every selection change so you just need to be aware of whether you want to respond or not. Seems to me like a callback that responds to a selection should not go and make another selection call? One other point. I recommend not using a global variable to store the script job ids for any instance of your UI. It means multiple instances of a UI would share a list. You already have a class instance which can store a list so just track them in self._scriptJobs = [] > refplanes.py - https://pastebin.com/zzKkFYxc > utils.py - https://pastebin.com/SXidXLTH > refplanes_ui.py - https://pastebin.com/qCGGqZEF > > Appreciate in advance if anyone could shed any lights on it. > > -- > 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/a4cd6401-5ec7-468b-92ea-86edcb9f41bf%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/a4cd6401-5ec7-468b-92ea-86edcb9f41bf%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/CAPGFgA1%2BAbCZ1UMLKcpUsYGtejs8MOrkdJ%2Bm9zBFTox16Bdctw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.