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 )
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)
def setProgress(progress): if not _progressing: return if _uiProgress: MProgressWindow.setProgress(progress) checkForCancel()
def setProgress( progress ): if not _progressing: return if _uiProgress: MProgressWindow.setProgress( progress ) checkForCancel()
def setProgress( progress ): if _uiProgress: MProgressWindow.setProgress( progress ) checkForCancel()