def startIprRenderProcedure(self, editor, resolutionX, resolutionY, camera): self.ipr_isrunning = True log.debug("startIprRenderProcedure") print "startIprRenderProcedure", editor, resolutionX, resolutionY, camera self.createGlobalsNode() self.preRenderProcedure() self.setImageName() pm.mayatoThea(width=resolutionX, height=resolutionY, camera=camera, startIpr=True) self.postRenderProcedure()
def renderProcedure(self, width, height, doShadows, doGlow, camera, options): log.debug("renderProcedure") self.removeLogFile() print "renderProcedure", width, height, doShadows, doGlow, camera, options self.createGlobalsNode() self.preRenderProcedure() self.setImageName() if pm.about(batch=True): pm.mayatoThea() else: pm.mayatoThea(width=width, height=height, camera=camera) if not self.ipr_isrunning: self.showLogFile() self.postRenderProcedure()
def stopIprRenderProcedure(self): self.ipr_isrunning = False log.debug("stopIprRenderProcedure") pm.mayatoThea(stopIpr=True) self.postRenderProcedure()