关闭

3.10 - Maya Commands: ls

180人阅读 评论(0) 收藏 举报
分类:
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)

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:359665次
    • 积分:9187
    • 等级:
    • 排名:第1992名
    • 原创:561篇
    • 转载:89篇
    • 译文:0篇
    • 评论:94条
    最新评论