LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

loggingControl.py calling postMenuCommand instead of setPostMenuCommand #330

Open pmolodo opened 8 years ago

pmolodo commented 8 years ago

From luk...@gmail.com on March 28, 2013 08:54:53

Describe the problem. loggingControl.py line 54 uses: subMenu.postMenuCommand(pymel.Callback(self.buildSubMenu, parent=subMenu, logger=item)) which raises the (suppressed) error: 'CommandMenuItem' object has no attribute 'postMenuCommand' and results in only adding one logger item to the menu. It seems the function name has been changed to setPostMenuCommand when using maya 2013 What Version of Maya are you using? 2013.5 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Win7 64bit What Version of PyMEL are you using? 1.0.5 What is the expected output? What do you see instead? I expect to see a full list of loggers listed. Instead I only see the first one If possible, provide a few lines of code to reproduce the problem. It helps us if your code will reproduce the problem from a new scene. n/a Does maya.cmds exhibit the same problem? n/a Please provide any additional information below.

Original issue: http://code.google.com/p/pymel/issues/detail?id=296