zbw_typeFinder.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:zTools 作者: zethwillie 项目源码 文件源码
def getObjectList(*args):
    """gets the list of object of type txt"""

    objs = []
    objText = getTypeText()

    if objText in typeList:
        objs = cmds.ls(type=objText)
    else:
        cmds.warning("This instance of Maya doesn't recognize that type of object: {0}!".format(objText))
        return()

    if objs:
#---------------- check if we're promoting shapes       
#---------------- if yes, send out list to see which elements are shapes and promote them, return a new list into obj ie. objs = promoteList(objs), this will return either the same list or an ammended list
        addObjectsToScrollList(objs)
    else:
        cmds.warning("No objects found of type: {0}".format(objText))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号