LumaPictures / pymel

Python in Maya Done Right
Other
490 stars 131 forks source link

nurbs Curve Shape node .cvs() method generates KeyError MDagPath exception #286

Open pmolodo opened 9 years ago

pmolodo commented 9 years ago

From geordiem...@gmail.com on August 09, 2011 10:03:16

Describe the problem: nurbs Curve Shape node method .cvs() fails with exception.

What Version of Maya are you using? 2011 x-64 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Linux

What Version of PyMEL are you using? 1.03 What is the expected output? What do you see instead? a list of CV objects 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. theCurve = pm.curve(d=3, p=[(0, 0, 0), (0, 0, 3), (0, 0, 6), (0, 0, 9)]) theCurveShape = theCurve.getShape() theCVs = theCurveShape.cvs(0,2)

Does maya.cmds exhibit the same problem? N/A. this is using an api call. Please provide any additional information below. here is the exception it generates: theCurve.cvs(0,3)

Error: 'MDagPath'

Traceback (most recent call last):

File "", line 1, in

File "", line 2, in cvs

File "/sww/tools/bundles/pymel-1.0.3/pymel/internal/factories.py", line 2076, in wrappedApiFunc

result = argHelper.castResult( self, result )

File "/sww/tools/bundles/pymel-1.0.3/pymel/internal/factories.py", line 1641, in castResult

return f( instance, result )

File "/sww/tools/bundles/pymel-1.0.3/pymel/internal/factories.py", line 1238, in

cls.outCast[apiTypeName] = lambda self, x: pymelType(x)

File "/sww/tools/bundles/pymel-1.0.3/pymel/core/general.py", line 4428, in init

super(MItComponent, self).init(_args, *_kwargs)

File "/sww/tools/bundles/pymel-1.0.3/pymel/core/general.py", line 4059, in init

super(DiscreteComponent, self).init(_args, *_kwargs)

File "/sww/tools/bundles/pymel-1.0.3/pymel/core/general.py", line 3676, in init

super(DimensionedComponent, self).init(_args, *_kwargs)

File "/sww/tools/bundles/pymel-1.0.3/pymel/core/general.py", line 3490, in init

dag = self.apiobjects['MDagPath']

KeyError: 'MDagPath'

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

pmolodo commented 9 years ago

From Gabriel....@gmail.com on October 03, 2011 08:41:00

I get the same on Maya 2012, Linux 64bit with the PyMel version that shipped with Maya.