LumaPictures / pymel

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

VirtualClassManager.register.validSpecialAttrs #329

Closed pmolodo closed 8 years ago

pmolodo commented 8 years ago

From Count....@gmail.com on March 20, 2013 22:03:17

[Describe the problem.]

When trying to subclass a PyNode it returns the ValueError: apicls special attribute not allowed. This is a built-in attribute of the nodetypes.Transform that I am trying to inherit from. I did not have this attribute on my Win7 machine so I don't know if it is a different version of Maya or OSX implementation. Anyway, this was easily fixed by adding apicls to the list of validSpecialAttrs. i.e. -

factories.py, ~line 2999: validSpecialAttrs = set(['module','readonly','slots','melnode','doc','apicls'])

[What Version of Maya are you using?]

Maya 2013x64

[On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc)]

OSX 64bit

[What Version of PyMEL are you using?]

1.0.4

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

pmolodo commented 8 years ago

From elron...@gmail.com on January 24, 2014 14:36:47

fixed with: https://github.com/LumaPictures/pymel/commit/a257f00b37ef9796bbca154d4bc7293ac45b18dc

Status: Fixed