Hello guys
i know that this thread is old, but recently i was searching about one 
problem and i see this in group.

i do this in another way, but i have different problem that i will say.
i did this:

def do_something(*args, **kwargs):
    print "hello"

idx = OpenMaya.MEventMessage.addEventCallback("timeChanged", get_sec)

this snippet works well, but problem is that i want to get all callbacks of 
the current scene and remove it.
i know that the code is something like this:

OpenMaya.MMessage.removeCallback(idx)

but, finding the idx from the current scene is a problem now.

i can’t run this codes in one step, maybe i want to run the second code 
after a while, for example, after closing the scene again.

any idea?

thanks
​

-- 
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/a9930e11-c931-4a0e-837a-a9329248c2e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to