def __init__(self, maxValue=100, interruptable=True): self.disable = False if r9Setup.mayaIsBatch(): self.disable = True return if maxValue <= 0: raise ValueError("Max has to be greater than 0") self._maxValue = maxValue self._interruptable = interruptable self._gMainProgressBar = mel.eval('$gmtmp = $gMainProgressBar')
def __init__(self, maxValue=100, interruptable=True): self.disable=False if r9Setup.mayaIsBatch(): self.disable=True return if maxValue <= 0: raise ValueError("Max has to be greater than 0") self._maxValue = maxValue self._interruptable = interruptable self._gMainProgressBar = mel.eval('$gmtmp = $gMainProgressBar')