[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27318] trunk/blender/release/scripts/op/ image.py: re-project images now save as PNG's rather then TAGA's, should work around a problem photoshop has with saving taga' s with alpha channels.

Campbell Barton ideasman42 at gmail.com
Sun Mar 7 21:39:28 CET 2010


Revision: 27318
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27318
Author:   campbellbarton
Date:     2010-03-07 21:39:27 +0100 (Sun, 07 Mar 2010)

Log Message:
-----------
re-project images now save as PNG's rather then TAGA's, should work around a problem photoshop has with saving taga's with alpha channels.

Modified Paths:
--------------
    trunk/blender/release/scripts/op/image.py

Modified: trunk/blender/release/scripts/op/image.py
===================================================================
--- trunk/blender/release/scripts/op/image.py	2010-03-07 20:27:40 UTC (rev 27317)
+++ trunk/blender/release/scripts/op/image.py	2010-03-07 20:39:27 UTC (rev 27318)
@@ -72,7 +72,7 @@
         import os
         import subprocess
 
-        EXT = "tga" # until we have a way to save as another format!
+        EXT = "png" # could be made an option but for now ok
         image_editor = image_editor_guess(context)
 
         for image in bpy.data.images:
@@ -114,6 +114,7 @@
         ProjectEdit._proj_hack[0] = image_new.name
         
         image_new.filename_raw = filename_final # TODO, filename raw is crummy
+        image_new.file_format = 'PNG'
         image_new.save()
         
         subprocess.Popen([image_editor, bpy.utils.expandpath(filename_final)])





More information about the Bf-blender-cvs mailing list