changed: auto-crop ignore `MA_` prefixed layers

main
pullusb 2023-06-21 18:33:50 +02:00
parent ee03cf734b
commit 771a481262
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ Activate / deactivate all masks using MA layers
- added: scene resolution in json crop pixels information, per objects
- changed: fixed name `crop_infos.json` for exported crop pixels information
- changed: auto-crop ignore `MA_` prefixed layers
1.3.5

4
fn.py
View File

@ -1341,7 +1341,7 @@ def get_gp_box_all_frame_selection(oblist=None, scn=None, cam=None, timeout=40):
scn.frame_set(num)
for ob in oblist:
for l in ob.data.layers:
if l.hide or l.opacity == 0.0:
if l.hide or l.opacity == 0.0 or l.info.startswith('MA_'): # hardcoded Mask exclusion !
continue
if not l.active_frame:
continue
@ -1358,7 +1358,7 @@ def get_gp_box_all_frame_selection(oblist=None, scn=None, cam=None, timeout=40):
for ob in oblist:
# if object is not animated no need to frame_set to update object position
for l in ob.data.layers:
if l.hide or l.opacity == 0.0:
if l.hide or l.opacity == 0.0 or l.info.startswith('MA_'): # hardcoded Mask exclusion !
continue
for f in l.frames:
if time() - t0 > timeout: