You have a couple ways to go about it. Either your camMenu function gets called whenever you need to trigger an update, and it will replace the button menu with a new one. Or it can edit the same menu over and over. Or, you can create the menu once and connect it's aboutToShow signal to a function that will update it.
I actually would prefer the last one. You can just clear and repopulate the menu each time they click it, which means that you don't need to keep the menu updated at any other time. On 3/10/2014 4:21 PM, "likage" <[email protected]> wrote: > Hi Justin, thank you for the reply. > Based on what you have mentioned, can I actually placed the updating > within the *camMenu* function? Or should I re-define it as another > function? > > -- > 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/9a5730d9-e73c-4fd3-85b8-21282c2f6536%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/9a5730d9-e73c-4fd3-85b8-21282c2f6536%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/CAPGFgA2LSMriu1R5rqxjNi-g0VTE1AXpiqNE8GASBiTH1aX9tw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
