[Durian-svn] [1214] always replace output path name for marker render

campbell durian-svn at blender.org
Thu Mar 4 15:29:04 CET 2010


Revision: 1214
          https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=1214
Author:   campbell
Date:     2010-03-04 15:29:03 +0100 (Thu, 04 Mar 2010)
Log Message:
-----------
always replace output path name for marker render

Modified Paths:
--------------
    pro/scripts/ui/marker_render.py

Modified: pro/scripts/ui/marker_render.py
===================================================================
--- pro/scripts/ui/marker_render.py	2010-03-04 13:38:45 UTC (rev 1213)
+++ pro/scripts/ui/marker_render.py	2010-03-04 14:29:03 UTC (rev 1214)
@@ -1,18 +1,18 @@
 import bpy
+import os
 
 def main(self, context, pad=10):
     scene = context.scene
     rd = scene.render
     backup = scene.start_frame, scene.end_frame, rd.output_path, rd.use_file_extension
     
-    output_path = rd.output_path
+    output_path = os.path.dirname(rd.output_path)
     start_frame = scene.start_frame
     end_frame = scene.end_frame
     rd.use_file_extension = False
-    
-    if output_path[-1] in ("\\", "/"):
-        output_path += bpy.data.filename.split("\\")[-1].split("/")[-1].replace(".blend", "")
 
+    output_path += bpy.data.filename.split("\\")[-1].split("/")[-1].replace(".blend", "")
+
     switch = [(m.frame, m, m.camera) for m in scene.timeline_markers if m.camera and m.camera.restrict_render == False]
     switch.sort()
     



More information about the Durian-svn mailing list