Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-07-17 17:29:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-17 17:29:55 +0400
commit22c6b7d174ec7158acc526821b002d9703cf4f56 (patch)
tree68ac54748cefe19c105709230be79e1deb7b6812 /release/scripts/ui/properties_render.py
parent30b712ed68dd72583357180741e845efb5952ad9 (diff)
PNG Compression can now be set, writing uncompressed PNG's is significantly faster for high resolution images - 2k.
Diffstat (limited to 'release/scripts/ui/properties_render.py')
-rw-r--r--release/scripts/ui/properties_render.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/release/scripts/ui/properties_render.py b/release/scripts/ui/properties_render.py
index 829416b86d3..9a153875756 100644
--- a/release/scripts/ui/properties_render.py
+++ b/release/scripts/ui/properties_render.py
@@ -295,6 +295,7 @@ class RENDER_PT_output(RenderButtonsPanel):
layout = self.layout
rd = context.scene.render
+ file_format = rd.file_format
wide_ui = context.region.width > narrowui
layout.prop(rd, "output_path", text="")
@@ -310,11 +311,15 @@ class RENDER_PT_output(RenderButtonsPanel):
col.prop(rd, "use_overwrite")
col.prop(rd, "use_placeholder")
- if rd.file_format in ('AVI_JPEG', 'JPEG'):
+ if file_format in ('AVI_JPEG', 'JPEG'):
split = layout.split()
split.prop(rd, "file_quality", slider=True)
+
+ if file_format == 'PNG':
+ split = layout.split()
+ split.prop(rd, "file_quality", slider=True, text="Compression")
- elif rd.file_format == 'MULTILAYER':
+ elif file_format == 'MULTILAYER':
split = layout.split()
col = split.column()
@@ -323,7 +328,7 @@ class RENDER_PT_output(RenderButtonsPanel):
if wide_ui:
col = split.column()
- elif rd.file_format == 'OPEN_EXR':
+ elif file_format == 'OPEN_EXR':
split = layout.split()
col = split.column()
@@ -340,7 +345,7 @@ class RENDER_PT_output(RenderButtonsPanel):
col = subsplit.column()
col.prop(rd, "exr_preview")
- elif rd.file_format == 'JPEG2000':
+ elif file_format == 'JPEG2000':
split = layout.split()
col = split.column()
col.label(text="Depth:")
@@ -351,7 +356,7 @@ class RENDER_PT_output(RenderButtonsPanel):
col.prop(rd, "jpeg2k_preset", text="")
col.prop(rd, "jpeg2k_ycc")
- elif rd.file_format in ('CINEON', 'DPX'):
+ elif file_format in ('CINEON', 'DPX'):
split = layout.split()
col = split.column()
col.prop(rd, "cineon_log", text="Convert to Log")
@@ -363,15 +368,15 @@ class RENDER_PT_output(RenderButtonsPanel):
col.prop(rd, "cineon_white", text="White")
col.prop(rd, "cineon_gamma", text="Gamma")
- elif rd.file_format == 'TIFF':
+ elif file_format == 'TIFF':
split = layout.split()
split.prop(rd, "tiff_bit")
- elif rd.file_format == 'QUICKTIME_CARBON':
+ elif file_format == 'QUICKTIME_CARBON':
split = layout.split()
split.operator("scene.render_data_set_quicktime_codec")
- elif rd.file_format == 'QUICKTIME_QTKIT':
+ elif file_format == 'QUICKTIME_QTKIT':
split = layout.split()
col = split.column()
col.prop(rd, "quicktime_codec_type", text="Video Codec")