Maybe not applicabl;e to your problem, but we got some significant improvements on some of our time-dependent tools using cmds.refresh(suspend=True) at start of the process and cmds.refresh(suspend=False) at the end.
If you happen to use this concept more and more, it can be usefull to make a decorator out of it. Le sam. 21 juil. 2018 à 01:57, yann19 <[email protected]> a écrit : > Perhaps it is something within my code that may needs to be refine. > I tried to bake it per controller but it seems to take even longer... > > I have pasted my code here - https://pastebin.com/raw/25UhLt6C for > reference. > > Appreciate if anyone could help to take a look and feedback :) > > -- > 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/01ff3672-50a2-414a-b0fe-65bb5074a4e3%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/01ff3672-50a2-414a-b0fe-65bb5074a4e3%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/CAD65uq%3DHR9RQoESVGvvnpz5WJN_EA_Y8wuCQd4Ys6zwUPLc1rg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
