예제 #1
0
def reset( maxRange ):
	global _uiProgress
	_uiProgress = (MGlobal.mayaState() == MGlobal.kInteractive)
	if _uiProgress:
		MProgressWindow.reserve()
		MProgressWindow.setProgressRange( 0, maxRange )
		MProgressWindow.setProgress( 0 )
		MProgressWindow.startProgress()
		MProgressWindow.setInterruptable( True )
예제 #2
0
def reset(maxRange):
    global _uiProgress
    global _progressing
    _progressing = True
    _uiProgress = (MGlobal.mayaState() == MGlobal.kInteractive)
    if _uiProgress:
        MProgressWindow.reserve()
        MProgressWindow.setProgressRange(0, maxRange)
        MProgressWindow.setProgress(0)
        MProgressWindow.startProgress()
        MProgressWindow.setInterruptable(True)
예제 #3
0
def setProgress(progress):
    if not _progressing:
        return
    if _uiProgress:
        MProgressWindow.setProgress(progress)
        checkForCancel()
예제 #4
0
def setProgress( progress ):
	if not _progressing:
		return
	if _uiProgress:
		MProgressWindow.setProgress( progress )
		checkForCancel()
예제 #5
0
def setProgress( progress ):
	if _uiProgress:
		MProgressWindow.setProgress( progress )
		checkForCancel()