PsychoBlend: remove unused output path.

This commit is contained in:
Nathan Vegdahl 2017-06-04 19:58:09 -07:00
parent ef5b573723
commit a82c674308
2 changed files with 7 additions and 10 deletions

View File

@ -119,10 +119,10 @@ class PsychoExporter:
else: else:
self.scene.frame_set(frame-1, 1.0+fraction) self.scene.frame_set(frame-1, 1.0+fraction)
def export_psy(self, export_path, render_image_path): def export_psy(self, export_path):
try: try:
f = open(export_path, 'w') f = open(export_path, 'w')
self._export_psy(f, export_path, render_image_path) self._export_psy(f, export_path)
except ExportCancelled: except ExportCancelled:
# Cleanup # Cleanup
f.close() f.close()
@ -134,7 +134,7 @@ class PsychoExporter:
self.scene.frame_set(self.fr) self.scene.frame_set(self.fr)
return True return True
def _export_psy(self, f, export_path, render_image_path): def _export_psy(self, f, export_path):
self.w = IndentedWriter(f) self.w = IndentedWriter(f)
# Info # Info
@ -149,7 +149,7 @@ class PsychoExporter:
self.w.write("Output {\n") self.w.write("Output {\n")
self.w.indent() self.w.indent()
self.w.write('Path ["%s"]\n' % render_image_path) self.w.write('Path [""]\n')
# Output section end # Output section end
self.w.unindent() self.w.unindent()

View File

@ -40,9 +40,9 @@ class PsychopathRender(bpy.types.RenderEngine):
return psy_binary return psy_binary
return "" return ""
def _export(self, scene, export_path, render_image_path): def _export(self, scene, export_path):
exporter = psy_export.PsychoExporter(self, scene) exporter = psy_export.PsychoExporter(self, scene)
return exporter.export_psy(export_path, render_image_path) return exporter.export_psy(export_path)
def _render(self, scene, psy_filepath): def _render(self, scene, psy_filepath):
psy_binary = PsychopathRender._locate_binary() psy_binary = PsychopathRender._locate_binary()
@ -97,12 +97,9 @@ class PsychopathRender(bpy.types.RenderEngine):
# Create a temporary file for exporting # Create a temporary file for exporting
export_path = get_temp_filename('.psy') export_path = get_temp_filename('.psy')
# Create a temporary file to render into
render_image_path = get_temp_filename('.exr')
# start export # start export
self.update_stats("", "Psychopath: Exporting data from Blender") self.update_stats("", "Psychopath: Exporting data from Blender")
if not self._export(scene, export_path, render_image_path): if not self._export(scene, export_path):
# Render cancelled in the middle of exporting, # Render cancelled in the middle of exporting,
# so just return. # so just return.
return return