Beispiel #1
0
 def saveTarget(self, path=None):
     """
     Export the current modifications to the human as one single target,
     relative to the basemesh.
     """
     if path is None:
         path = mh.getPath("full_target.target")
     if os.path.splitext(path)[1] != '.target':
         raise RuntimeError("Cannot save target to file %s, expected a path to a .target file." % path)
     human = self.selectedHuman
     algos3d.saveTranslationTarget(human.meshData, path)
     log.message("Full target exported to %s", path)
Beispiel #2
0
    def saveTargets(self, path, strip=True):
        human = G.app.selectedHuman

        if strip:
            self.stripTargets(human.meshData)

        algos3d.saveTranslationTarget(human.meshData, path)
        log.message('Saving target to %s', path)
        self.fileName = os.path.basename(path)
        self.dirName = os.path.dirname(path)

        if strip:
            self.unstripTargets(human.meshData)
Beispiel #3
0
 def saveTargets(self, path):
     human = G.app.selectedHuman
     algos3d.saveTranslationTarget(human.meshData, path)
     self.fileName = os.path.basename(path)
     self.dirName = os.path.dirname(path)
Beispiel #4
0
 def saveTarget(self):
     human = self.selectedHuman
     algos3d.saveTranslationTarget(human.meshData, "full_target.target")
     log.message("Full target exported")
Beispiel #5
0
 def saveTarget(self):
     human = self.selectedHuman
     algos3d.saveTranslationTarget(human.meshData, "full_target.target")
     log.message("Full target exported")