def saveBaseMesh(path): mainDir = os.path.dirname(path) baseMask = Blender.Object.Get("Base") baseMaskPath = os.path.join(mainDir, "base_mesh.obj") bExporter = blender2obj.Blender2obj(baseMask, 1) bExporter.write(baseMaskPath, 1)
def saveScanMesh(path): mainDir = os.path.dirname(path) scanMesh = Blender.Object.Get("scan_mesh") scanMeshPath = os.path.join(mainDir, "scan_mesh.obj") bExporter = blender2obj.Blender2obj(scanMesh, 1) bExporter.write(scanMeshPath, 1)
def saveScanMask(path): mainDir = os.path.dirname(path) scanMask = Blender.Object.Get("scan_mask") scanMaskPath = os.path.join(mainDir, "scan_mask.obj") bExporter = blender2obj.Blender2obj(scanMask, 1) bExporter.write(scanMaskPath, 1)