The best thing to do is to track all of your callbacks with a registration mechanism so you can access them after the fact. This is a general practice that is good to get into because it is possible for a lot of confusion to ensue otherwise.
Is the MSceneMessage a temporary callback based on a context you are setting? If not, you might want to consider kicking off such a callback when you are initializing your system at Maya startup. In other words, if you want this thing running all the time, then start it up when Maya starts. -Judah On Wed, Apr 3, 2013 at 1:36 PM, Sune <[email protected]> wrote: > I'm adding and removing callbacks with MSceneMessage from a python script. > I'd like to somehow query if these callbacks exist already, before adding > them. I searched for the answer, but came up blank. > > I guess I could define these in a python plugin, then I would only ever > have one instance, but that seems like a workaround. > > Any help would be great! > > Sune > > -- > 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 post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
