import maya.cmds as cmds
cmds.ls(transforms = True)
cmds.ls(shapes = True)
cmds.ls(cameras = True)
cmds.ls(sl = True)
selection = cmds.ls(sl = True)
for sel in selection:
cmds.setAttr("{0}.v".format(sel), False)
print(cmds.ls(sl=True, showType = True)) #[u'pCylinder1', u'transform', u'pSphereShape1', u'mesh']
cmds.ls(type="mesh")
cmds.ls(type="transform")
cmds.ls(transforms=True) # this sentence is equal to the above one
cmds.ls(references=True)
cmds.ls(assemblies=True) # the top level objects
cmds.ls("persp")
cmds.ls("p*", transforms = True)
3.10 - Maya Commands: ls
最新推荐文章于 2022-11-07 15:03:24 发布