关闭

3.10 - Maya Commands: ls

210人阅读 评论(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网站的观点或立场
    个人资料
    • 访问:415598次
    • 积分:10083
    • 等级:
    • 排名:第1815名
    • 原创:590篇
    • 转载:90篇
    • 译文:0篇
    • 评论:96条
    最新评论