Add format customization for splitted tech passes codec (default to ZIP)
This commit is contained in:
@@ -226,7 +226,24 @@ class RT_OT_create_output_layers(bpy.types.Operator):
|
||||
('DWAB', 'DWAB (lossy)', ''),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
tech_exr_codec : EnumProperty(
|
||||
name='Tech Passes Codec',
|
||||
default='ZIP',
|
||||
description='Codec settings for Techpasses OpenEXR (passes are set to 32bit)',
|
||||
items=(
|
||||
('PIZ', 'PIZ (lossless)', ''),
|
||||
('ZIP', 'ZIP (lossless)', ''),
|
||||
('RLE', 'RLE (lossless)', ''),
|
||||
('ZIPS', 'ZIPS (lossless)', ''),
|
||||
# ('PXR24', 'Pxr24 (lossy)', ''),
|
||||
# ('B44', 'B44 (lossy)', ''),
|
||||
# ('B44A', 'B44A (lossy)', ''),
|
||||
# ('DWAA', 'DWAA (lossy)', ''),
|
||||
# ('DWAB', 'DWAB (lossy)', ''),
|
||||
),
|
||||
)
|
||||
|
||||
color_depth : EnumProperty(
|
||||
name='Color Depth',
|
||||
default='16',
|
||||
@@ -460,13 +477,14 @@ Possible variables:
|
||||
row_multi.prop(self, 'template_multilayer_name')
|
||||
row_multi.active = final_format == 'OPEN_EXR_MULTILAYER'
|
||||
|
||||
## Todo: Add rt.info_note to explain templates
|
||||
box.row().prop(self, 'name_type', expand=False)
|
||||
col = box.column()
|
||||
col.prop(self, 'file_format')
|
||||
col.prop(self, 'exr_codec')
|
||||
col.row().prop(self, 'color_depth', expand=True)
|
||||
col.prop(self, 'split_tech_passes')
|
||||
if self.split_tech_passes:
|
||||
col.prop(self, 'tech_exr_codec', text='Tech Passes Codec')
|
||||
|
||||
search_row = layout.row()
|
||||
op = search_row.operator("rt.colprop_search_and_replace", icon='BORDERMOVE')
|
||||
@@ -573,6 +591,13 @@ Possible variables:
|
||||
'exr_codec' : self.exr_codec,
|
||||
'color_depth' : self.color_depth,
|
||||
}
|
||||
|
||||
tech_file_format = {
|
||||
## Force the use of OpenEXR for tech passes if normal passes uses PNG or the likes
|
||||
'file_format' : file_ext if file_ext in ('OPEN_EXR_MULTILAYER', 'OPEN_EXR') else 'OPEN_EXR',
|
||||
'exr_codec' : self.tech_exr_codec,
|
||||
'color_depth' : '32',
|
||||
}
|
||||
|
||||
scn = context.scene
|
||||
nodes = scn.node_tree.nodes
|
||||
@@ -591,6 +616,7 @@ Possible variables:
|
||||
remap_names=remap_names,
|
||||
file_format=file_format,
|
||||
split_tech_passes=self.split_tech_passes,
|
||||
tech_file_format=tech_file_format,
|
||||
template=self.final_base_path_template)
|
||||
|
||||
return {"FINISHED"}
|
||||
|
||||
Reference in New Issue
Block a user