LumaPictures / pymel

Python in Maya Done Right
Other
498 stars 132 forks source link

remove from set raises #1

Closed cgrebeld closed 14 years ago

cgrebeld commented 14 years ago

Is this the right place for this?

import pymel.core as pm            
t,h = pm.polySphere()            
pm.SCENE.initialShadingGroup.remove(t)

# ,Error:, in method 'MFnSet_removeMember', argument 2 of type 'MPlug const &'
# Traceback (most recent call last):
#   File "<maya console>", line 3, in <module>
#   File "/v/work/main/build/debug/runTime/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/pymel/core/nodetypes.py", line 5680, in remove
#     return self.__apimfn__().removeMember(item.__apiobject__())
# TypeError: in method 'MFnSet_removeMember', argument 2 of type 'MPlug const &' # 

# but this works
pm.sets(pm.SCENE.initialShadingGroup,e=True,remove=t)
pmolodo commented 14 years ago

Fixed (a while back, actually, just forgot to close this issue...)