As i’m working on an inhouse exporter script, i stumbled over a peculiar problem with PyMel. The pymel version of the ls-command seems to ignore the long parameter, while the maya.cmds version works correctly:
import maya.cmds as cmds
for x in cmds.ls(sl=True, l=True):
print x
Result:
|scene_main|mesh_helix1
PyMel:
from pymel.core import *
for x in ls(sl=True, l=True):
print x
Result:
mesh_helix1
Am i doing something wrong here or is this actually a bug? Has anyone encountered that problem?