Use GP_RENDER_FILE_FORMAT env var to set file output nodes
parent
19c43e6268
commit
09a47413c3
|
@ -14,6 +14,10 @@ Activate / deactivate layer opacity according to prefix
|
||||||
Activate / deactivate all masks using MA layers
|
Activate / deactivate all masks using MA layers
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
1.8.12
|
||||||
|
|
||||||
|
- changed: Use GP_RENDER_FILE_FORMAT env var to set file output nodes
|
||||||
|
|
||||||
1.8.11
|
1.8.11
|
||||||
|
|
||||||
- fixed: cleaning materials duplication checked against name without checking material GP type
|
- fixed: cleaning materials duplication checked against name without checking material GP type
|
||||||
|
|
|
@ -2,7 +2,7 @@ bl_info = {
|
||||||
"name": "GP Render",
|
"name": "GP Render",
|
||||||
"description": "Organise export of gp layers through compositor output",
|
"description": "Organise export of gp layers through compositor output",
|
||||||
"author": "Samuel Bernou",
|
"author": "Samuel Bernou",
|
||||||
"version": (1, 8, 11),
|
"version": (1, 8, 12),
|
||||||
"blender": (3, 0, 0),
|
"blender": (3, 0, 0),
|
||||||
"location": "View3D",
|
"location": "View3D",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
23
fn.py
23
fn.py
|
@ -152,19 +152,18 @@ def copy_settings(obj_a, obj_b):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_file_output_format(fo):
|
def set_file_output_format(fo):
|
||||||
# FIXME for now default fallback to multilayer
|
|
||||||
env_file_format = os.environ.get('FILE_FORMAT')
|
|
||||||
fo.format.file_format = env_file_format if env_file_format else 'OPEN_EXR_MULTILAYER'
|
|
||||||
# fo.format.file_format = 'OPEN_EXR' # 'OPEN_EXR_MULTILAYER'
|
|
||||||
fo.format.color_mode = 'RGBA'
|
|
||||||
fo.format.color_depth = '16'
|
|
||||||
fo.format.exr_codec = 'PIZ' # 'ZIP', 'RLE'
|
|
||||||
|
|
||||||
## PNG format
|
env_file_format = json.loads(os.environ.get('GP_RENDER_FILE_FORMAT', '{}'))
|
||||||
# fo.format.file_format = 'PNG'
|
if not env_file_format:
|
||||||
# fo.format.color_mode = 'RGBA'
|
env_file_format = {
|
||||||
# fo.format.color_depth = '8'
|
'file_format': 'OPEN_EXR_MULTILAYER',
|
||||||
# fo.format.compression = 15
|
'exr_codec': 'ZIP',
|
||||||
|
'color_depth': '16',
|
||||||
|
'color_mode': 'RGBA'
|
||||||
|
}
|
||||||
|
|
||||||
|
for k, v in env_file_format.items():
|
||||||
|
setattr(fo.format, k, v)
|
||||||
|
|
||||||
def set_scene_aa_settings(scene=None, aa=True):
|
def set_scene_aa_settings(scene=None, aa=True):
|
||||||
'''aa == using native AA, else disable scene AA'''
|
'''aa == using native AA, else disable scene AA'''
|
||||||
|
|
Loading…
Reference in New Issue