def draw(self, context): layout = self.layout scn = context.scene if not utils.drawConfirm(layout, scn): return settings.drawDirectories(layout, scn) layout.label("Base Character") character.drawItems(layout, scn) layout.operator("mh.create_base_character") layout.separator() layout.label("Mask") layout.operator("mh.generate_mask") #layout.operator("mh.make_mask") #layout.operator("mh.shapekey_mask") layout.separator() if not utils.checkForNumpy(layout, "MakeFace"): return layout.label("Face") layout.operator("mh.generate_face") #layout.prop(scn, "MhStiffness") #layout.prop(scn, "MhLambda") #layout.prop(scn, "MhIterations") ob = context.object if ob and ob.MhMaskFilePath: layout.operator("mh.save_face") layout.operator("mh.save_face_as")
def draw(self, context): layout = self.layout scn = context.scene if not utils.drawConfirm(layout, scn): return settings.drawDirectories(layout, scn) if not utils.checkForNumpy(layout, "WarpTarget"): return layout.label("Source Character") srcChar = warptarget.theSourceCharacter.character srcChar.drawFiles(layout, scn) if srcChar.files: layout.operator("mh.load_source_character") layout.label("Source Morph") layout.operator("mh.set_source_morph") layout.prop(scn, "MhSourceMorphTopDir") layout.prop(scn, "MhSourceMorphDir") layout.prop(scn, "MhSourceMorphFile") layout.separator() layout.label("Target Character") trgChar = warptarget.theTargetCharacter.character character.drawItems(layout, scn) layout.operator("mh.update_target_character") trgChar.drawFiles(layout, scn) if trgChar.files: layout.operator("mh.load_target_character") layout.label("Target Morph") layout.prop(scn, "MhNeutral", expand=True) layout.prop(scn, "MhUseSubdirs") layout.prop(scn, "MhTargetMorphTopDir") layout.prop(scn, "MhTargetMorphDir") layout.prop(scn, "MhTargetMorphFile") layout.separator() layout.label("Warp method") layout.prop(scn, "MhWarpPart", expand=True) layout.prop(scn, "MhKeepActive") layout.separator() layout.operator("mh.warp_morph") layout.separator() split = layout.split(0.8) split.prop(scn, "MhLandmarks") split.operator("mh.update_landmarks") layout.prop(scn, "MhWarpAllMorphsInDir")
def draw(self, context): layout = self.layout scn = context.scene if not utils.drawConfirm(layout, scn): return settings.drawDirectories(layout, scn) if not utils.checkForNumpy(layout, "WarpTarget"): return layout.label("Source Character") srcChar = the.SourceCharacter.character srcChar.drawFiles(layout, scn) if srcChar.files: layout.operator("mh.load_source_character") layout.label("Source Morph") layout.operator("mh.set_source_morph") layout.prop(scn, "MhSourceMorphTopDir") layout.prop(scn, "MhSourceMorphDir") layout.prop(scn, "MhSourceMorphFile") layout.separator() layout.label("Target Character") trgChar = the.TargetCharacter.character character.drawItems(layout, scn) layout.operator("mh.update_target_character") trgChar.drawFiles(layout, scn) if trgChar.files: layout.operator("mh.load_target_character") layout.label("Target Morph") layout.prop(scn, "MhNeutral", expand=True) layout.prop(scn, "MhUseSubdirs") layout.prop(scn, "MhTargetMorphTopDir") layout.prop(scn, "MhTargetMorphDir") layout.prop(scn, "MhTargetMorphFile") layout.separator() layout.label("Warp method") layout.prop(scn, "MhWarpPart", expand=True) layout.prop(scn, "MhKeepActive") layout.separator() layout.operator("mh.warp_morph") layout.separator() split = layout.split(0.8) split.prop(scn, "MhLandmarks") split.operator("mh.update_landmarks") layout.prop(scn, "MhWarpAllMorphsInDir")