lsUI でUIのリスト

リーフ数 2
1

UI 系

2

UI をリストする

cmds.lsUI(windows = True)

listUI = cmds.lsUI(windows = True)
print(listUI)
listUI = cmds.lsUI(windows = True)
print(listUI)
for index in listUI:
    if index == u'MayaWindow':
        print(index)
        print('dont delete !!!')
    else:
        cmds.deleteUI(index)