I had an old scripted plugin that I developed in maya 2008. I got a bit of time and thought I would make some improvemnts and get it running in 2009.
However when I tried it would not load, on further investigation it seems that many methods of the api are not recognized. for example: import maya.OpenMayaMPx dir(maya.OpenMayaMPx.MFnPlugin) gives the error # Error: 'module' object has no attribute 'MFnPlugin' # Traceback (most recent call last): # File "<maya console>", line 1, in <module> # AttributeError: 'module' object has no attribute 'MFnPlugin' # I tried loading one of the scripted plugings that ships with 2009 (sineNode) it would not load the plugin, giving the error: # Traceback (most recent call last): # File "C:/Documents and Settings/xxxx/My Documents/maya/2009/plug- ins/sineNode.py", line 51, in <module> # sineNodeId = OpenMaya.MTypeId(0x87000) # TypeError: __init__() takes exactly 1 argument (2 given) // I asked a colleague to try in 2009, now he doesnt have sp1a running and it worked ok, so it looks that the api has been borked in sp1a anyone else notice this? confirm this? Cheers, neil --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
