diff --git a/CHANGELOG.md b/CHANGELOG.md index 170b7b9..bdec3fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,11 @@ Activate / deactivate layer opacity according to prefix Activate / deactivate all masks using MA layers --> +1.8.4 + +- fix: select node from layer +- changed: Check for problems: object numbering check does not list as error if parent part has number prefix (previously checked only for last part) + 1.8.3 - changed: for layer with 0 opacity, do not send to render and keep opacity diff --git a/OP_check_scene.py b/OP_check_scene.py index 4afb2ce..e3e4e4b 100644 --- a/OP_check_scene.py +++ b/OP_check_scene.py @@ -68,8 +68,18 @@ def check_file_output_numbering(reports=None): return reports for fo in file_outs: - if not prenum.match(fo.base_path.split('/')[-1]): - reports.append(f'No object numbering : node {fo.name}') + ### Check for object prefix number in path + split_path = fo.base_path.split('/') + if not prenum.match(split_path[-1]): + report_missing_number = True + # No prefix-number in tail part name + if len(split_path) >= 2 and prenum.match(split_path[-2]): + # report if no prefix-number on parent path part either + report_missing_number = False + + if report_missing_number: + reports.append(f'No object numbering : node {fo.name}') + pct = 0 if fo.format.file_format == 'OPEN_EXR_MULTILAYER': ## multilayer use layer_slots > slot.name diff --git a/OP_setup_layers.py b/OP_setup_layers.py index ca37c12..0842031 100644 --- a/OP_setup_layers.py +++ b/OP_setup_layers.py @@ -645,12 +645,6 @@ class GPEXP_OT_select_layer_in_comp(bpy.types.Operator): infos.append(mess) continue - if not context.scene.view_layers.get(vl_name): - mess = f'/!\ {l.info}: view layer "{vl_name}" does not exists ' - print(mess) - infos.append(mess) - continue - if not vl_name in used_vl: mess = f'{l.info}: view layer "{vl_name}" not used in scene renderlayer nodes' print(mess) diff --git a/__init__.py b/__init__.py index 3857bb3..7f1e5e2 100644 --- a/__init__.py +++ b/__init__.py @@ -2,7 +2,7 @@ bl_info = { "name": "GP Render", "description": "Organise export of gp layers through compositor output", "author": "Samuel Bernou", - "version": (1, 8, 3), + "version": (1, 8, 4), "blender": (3, 0, 0), "location": "View3D", "warning": "",