ECToo / pymel

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

pymel.ls(sl=True) on particles raises an error #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.

What Version of Maya are you using?
2011

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)
2011-1.1 x64

What Version of PyMEL are you using?
1.0.0

What is the expected output? What do you see instead?
- Run ls(selection=True) on particles, get:

# Error: 
# Traceback (most recent call last):
#   File "<maya console>", line 3, in <module>
#   File 
"/local/apps/linux/aw/maya2011/lib/python2.6/site-packages/pymel/core/general.py
", line 896, in ls
#     return map(PyNode, res)
#   File 
"/local/apps/linux/aw/maya2011/lib/python2.6/site-packages/pymel/core/general.py
", line 1543, in __new__
#     pymelType, obj = _getPymelType( argObj, name )
#   File 
"/local/apps/linux/aw/maya2011/lib/python2.6/site-packages/pymel/core/general.py
", line 109, in _getPymelType
#     pymelType = _getPymelTypeFromObject( obj, name )
#   File 
"/local/apps/linux/aw/maya2011/lib/python2.6/site-packages/pymel/core/general.py
", line 44, in _getPymelTypeFromObject
#     raise MayaNodeError
# MayaNodeError: Maya Node does not exist: u'None' # 

This is practically a dupe of Issue 95.

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.

Does maya.cmds exhibit the same problem?
No

Please provide any additional information below.

Original issue reported on code.google.com by michael....@gmail.com on 26 Aug 2011 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
it seems to work correctly for me with pymel 1.0.3, try getting the latest
ie: i can select particles and then
ls(sl=True)
ls(sl=1) also works for me
ls(ls=true) does not
c.r

Original comment by chr...@superbotentertainment.com on 27 Aug 2011 at 12:34

GoogleCodeExporter commented 9 years ago
How can I most easily tell my version? Unfortunately I'm writing this for a 
tool that must be distributed at a studio and it may be a while before we can 
get everyone upgraded.

Original comment by michael....@gmail.com on 27 Aug 2011 at 12:41

GoogleCodeExporter commented 9 years ago
Seems to work for me too - exact code I used to test:

import pymel.core as pm
part = pm.createNode('particle')
pm.select(part)
pm.ls(sl=1)

to tell the pymel version, you can do:

import pymel
print pymel.__version__

closing this ticket unless someone can confirm this is a problem in 1.0.3 or 
later

Original comment by elron...@gmail.com on 12 Oct 2011 at 8:33