maya cmds pymel 'ESC' 退出 while, for 循环

maya cmds pymel 'ESC' 退出 while, for 循环

import maya.cmds as cmds

cmds.progressWindow(isInterruptable=1)

while 1 :

    print "kill me!"

    if cmds.progressWindow(query=1, isCancelled=1) :

        break

cmds.progressWindow(endProgress=1)

posted @ 2019-04-25 11:02  ibingshan  阅读(391)  评论(0编辑  收藏  举报