code-google-com / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

VirtualClassManager.register.validSpecialAttrs #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[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 reported on code.google.com by Count....@gmail.com on 21 Mar 2013 at 5:03

GoogleCodeExporter commented 9 years ago
fixed with:
https://github.com/LumaPictures/pymel/commit/a257f00b37ef9796bbca154d4bc7293ac45
b18dc

Original comment by elron...@gmail.com on 24 Jan 2014 at 10:36