def onShow(self, event): gui3d.TaskView.onShow(self, event) self.filechooser.setFocus() self.posefile = posemode.enterPoseMode() if self.posefile: self.pose = posemode.loadMhpFile(self.posefile) else: self.pose = None
def onShow(self, event): gui3d.TaskView.onShow(self, event) self.filechooser.setFocus() if gui3d.app.settings.get('cameraAutoZoom', True): gui3d.app.setGlobalCamera() self.posefile = posemode.enterPoseMode() if self.posefile: self.pose = posemode.loadMhpFile(self.posefile) else: self.pose = None
def enterPoseMode(self): self.posefile = posemode.enterPoseMode() if self.posefile: posemode.loadMhpFile(self.posefile)
def enterPoseMode(self): self.posefile = posemode.enterPoseMode() if self.posefile: posemode.loadMhpFile(self.posefile)
def undo(self): self.library.pose = posemode.loadMhpFile(self.before, self.library.pose) self.library.posefile = self.before return True
def do(self): self.library.pose = posemode.loadMhpFile(self.after, self.library.pose) self.library.posefile = self.after return True
def undo(self): clearOnly = self.before is None self.library.pose = posemode.loadMhpFile(self.before, self.library.pose, clearOnly) self.library.posefile = self.before return True
def do(self): clearOnly = self.after is None self.library.pose = posemode.loadMhpFile(self.after, self.library.pose, clearOnly) self.library.posefile = self.after return True