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.mayatokray(width=resolutionX, height=resolutionY, camera=camera, startIpr=True) self.postRenderProcedure()
def renderProcedure(self, width, height, doShadows, doGlow, camera, options): log.debug("renderProcedure") self.createGlobalsNode() self.preRenderProcedure() self.setImageName() if pm.about(batch=True): pm.mayatokray() else: pm.mayatokray(width=width, height=height, camera=camera) self.postRenderProcedure()
def stopIprRenderProcedure(self): self.ipr_isrunning = False log.debug("stopIprRenderProcedure") pm.mayatokray(stopIpr=True) self.postRenderProcedure()