fix select node from layer and adjust object numbering check
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)main
parent
ea0561e14e
commit
8be44fa1e5
|
@ -14,6 +14,11 @@ Activate / deactivate layer opacity according to prefix
|
||||||
Activate / deactivate all masks using MA layers
|
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
|
1.8.3
|
||||||
|
|
||||||
- changed: for layer with 0 opacity, do not send to render and keep opacity
|
- changed: for layer with 0 opacity, do not send to render and keep opacity
|
||||||
|
|
|
@ -68,8 +68,18 @@ def check_file_output_numbering(reports=None):
|
||||||
return reports
|
return reports
|
||||||
|
|
||||||
for fo in file_outs:
|
for fo in file_outs:
|
||||||
if not prenum.match(fo.base_path.split('/')[-1]):
|
### Check for object prefix number in path
|
||||||
reports.append(f'No object numbering : node {fo.name}')
|
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
|
pct = 0
|
||||||
if fo.format.file_format == 'OPEN_EXR_MULTILAYER':
|
if fo.format.file_format == 'OPEN_EXR_MULTILAYER':
|
||||||
## multilayer use layer_slots > slot.name
|
## multilayer use layer_slots > slot.name
|
||||||
|
|
|
@ -645,12 +645,6 @@ class GPEXP_OT_select_layer_in_comp(bpy.types.Operator):
|
||||||
infos.append(mess)
|
infos.append(mess)
|
||||||
continue
|
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:
|
if not vl_name in used_vl:
|
||||||
mess = f'{l.info}: view layer "{vl_name}" not used in scene renderlayer nodes'
|
mess = f'{l.info}: view layer "{vl_name}" not used in scene renderlayer nodes'
|
||||||
print(mess)
|
print(mess)
|
||||||
|
|
|
@ -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, 3),
|
"version": (1, 8, 4),
|
||||||
"blender": (3, 0, 0),
|
"blender": (3, 0, 0),
|
||||||
"location": "View3D",
|
"location": "View3D",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
Loading…
Reference in New Issue