As far as I can see this is working perfectly well. Thanks a lot for the
tip!
Only thing that caused problems was the prefixing of module - took me some
minutes to figure out the error message as I misread your comments in the
first place - but I guess you'd wanna change the __call__ method to include
this:
if __name__ != '__main__':
mm.eval('python("' + __name__ + '.Callback._doCall()")')
else:
mm.eval('python("Callback._doCall()")')
for the sake of coherency in case you should put it into pymel.
In any case, it solved the problem and I can at last keep my code clean and
tidy without compromising anything so thanks again.
--
JAKOB WELNER
_____________
Animator | R&D
jakob.welner.dk
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---