already done: http://code.google.com/p/pymel/issues/detail?id=288

Need to get going now, so not going to be able to dig into it right now,
but I'll try to take a look before I go to bed.  At the very least, I
should be able to get it so that it returns a 'generic' Component object
instead of throwing an error pretty easily...

- Paul

On Tue, Oct 16, 2012 at 7:24 PM, Anthony Tan <[email protected]>wrote:

> Righto, yell if you want me to lodge an issue in the tracker happy to fill
> out the relevant paperwork (legacies of being a public servant :P)
>
>
> (PyMel 1.0.3, Maya 2012x64, win7 sp1)
>
> Repro is to sketch some particles down, go into component mode and select
> 1 or many particles, and then do a pm.ls(sl=1) call
> Here's the full trace:
>
> # Error: Got an instance of a component which could not be mapped to a
> pymel class: kDynParticleSetComponent
>
> # Traceback (most recent call last):
>
> # File "<maya console>", line 1, in <module>
>
> # File "C:\Program
> Files\Autodesk\Maya2012\Python\lib\site-packages\pymel\core\general.py",
> line 1009, in ls
>
> # return map(PyNode, res)
>
> # File "C:\Program
> Files\Autodesk\Maya2012\Python\lib\site-packages\pymel\core\general.py",
> line 1693, in __new__
>
> # pymelType, obj = _getPymelType( argObj, name )
>
> # File "C:\Program
> Files\Autodesk\Maya2012\Python\lib\site-packages\pymel\core\general.py",
> line 100, in _getPymelType
>
> # pymelType = _getPymelTypeFromObject( obj, name )
>
> # File "C:\Program
> Files\Autodesk\Maya2012\Python\lib\site-packages\pymel\core\general.py",
> line 38, in _getPymelTypeFromObject
>
> # raise RuntimeError('Got an instance of a component which could not be
> mapped to a pymel class: %s' % obj.apiTypeStr())
>
> # RuntimeError: Got an instance of a component which could not be mapped
> to a pymel class: kDynParticleSetComponent #
>
>
>
>
> On Wednesday, October 17, 2012 10:14:46 AM UTC+8, elrond79 wrote:
>>
>> nope, that's definitely a problem with pymel. I'll make a ticket and take
>> a look...
>> - Paul
>>
>>   --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to