You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maya command version cmds.ls(sl=True, uuid=True) returns a list of UUID strings: Result: [u'BA2653C9-42AB-58FD-4206-009350A025B5', u'194E3BAD-4FAC-AD47-6FA3-9DBFEAFBBAC0']
PyMEL version pymel.ls(sl=True, uuid=True) fails with an error: Error: MayaNodeError: file ...\pymel\core\general.py line 2306: Maya Node does not exist (or is not unique):: u'BA2653C9-42AB-58FD-4206-009350A025B5'
The text was updated successfully, but these errors were encountered:
Since the PyMEL ls command returns PyNode objects instead of strings, and PyNode objects have a method to get the uuid, it makes sense to simply ignore the uuid/uid flag to the ls command here. This is a simple change in core/general.py, add to the ls command (I put it at line 1079):
Maya command version
cmds.ls(sl=True, uuid=True)
returns a list of UUID strings:Result: [u'BA2653C9-42AB-58FD-4206-009350A025B5', u'194E3BAD-4FAC-AD47-6FA3-9DBFEAFBBAC0']
PyMEL version
pymel.ls(sl=True, uuid=True)
fails with an error:Error: MayaNodeError: file ...\pymel\core\general.py line 2306: Maya Node does not exist (or is not unique):: u'BA2653C9-42AB-58FD-4206-009350A025B5'
The text was updated successfully, but these errors were encountered: