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))
评论列表
文章目录