Add more default prefix for mask layer exclusion
1.8.3 - changed: for layer with 0 opacity, do not send to render and keep opacity - removed: `GP` prefix exclusion to send GP to render - added: more default prefix exclusion for _layer to render_ and _skip opacity reset_ (`MASK, mask, MSK, msk`)
This commit is contained in:
+6
-6
@@ -77,7 +77,7 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
|
||||
description='Set single user on all objects GP data')
|
||||
|
||||
excluded_prefix : StringProperty(
|
||||
name='Excluded Layer By Prefix', default='GP, RG, PO, MA',
|
||||
name='Excluded Layer By Prefix', default='RG, PO, MA, MASK, mask, MSK, msk',
|
||||
description='Exclude layer to send to render by prefix (comma separated list)')
|
||||
|
||||
clean_name_and_visibility : BoolProperty(name='Clean Name And Visibility', default=True,
|
||||
@@ -196,7 +196,7 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
|
||||
|
||||
all_gp_objects = [o for o in context.scene.objects if o.type == 'GPENCIL']
|
||||
|
||||
## clean name and visibility
|
||||
## Clean name and visibility
|
||||
if self.clean_name_and_visibility:
|
||||
for o in all_gp_objects:
|
||||
if o.hide_render:
|
||||
@@ -208,10 +208,10 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
|
||||
l.info = l.info + o.name.lower()
|
||||
|
||||
## Make used prefix visible ?? (maybe some layer were intentionally hidden...)
|
||||
if (res := re.search(r'^([A-Z]{2})_', l.info)):
|
||||
if res.group(1) in prefix_to_render and l.hide == True and not 'invisible' in l.info:
|
||||
print(f'{o.name} -> {l.info} : Switch visibility On')
|
||||
l.hide = False
|
||||
# if (res := re.search(r'^([A-Z]{2})_', l.info)):
|
||||
# if res.group(1) in prefix_to_render and l.hide == True and not 'invisible' in l.info:
|
||||
# print(f'{o.name} -> {l.info} : Switch visibility On')
|
||||
# l.hide = False
|
||||
|
||||
if self.clean_material_duplication:
|
||||
print('Clean material duplicates')
|
||||
|
||||
Reference in New Issue
Block a user