Hey all - I just ran into this fun error: swig/python detected a memory leak of type 'MCallbackId *', no destructor found.
After a quick search, I see that it was mentioned back in January by Farsheed, and a few others since then, so I assume it's a known bug... so I won't go into the details. (Though it seems it's still there in 2009, alas...) Anyway, I came across it because I was trying to get some sort of notification when a node is deleted... Unfortunately, there's no scriptJob condition / event / option that notifies of node deletion (not that I could find, anyway), so I tried this: http://pastebin.com/f4a2026cf ...but that gave me the aforementioned ominous memory leak warning. (If you don't see it, check your console output window...) The best workaround I could come up with was to create a new attribute on another node that isn't likely to be deleted (say, "time1"), and then connect an attribute of the node you wish to watch to that, then create a scriptJob with the 'connectionChange' flag to watch your new attribute. It seems like a common problem, though, so I was wondering if anyone here had any better solutions they've devised? --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---