changed: auto-crop ignore `MA_` prefixed layers
parent
ee03cf734b
commit
771a481262
|
@ -18,6 +18,7 @@ Activate / deactivate all masks using MA layers
|
||||||
|
|
||||||
- added: scene resolution in json crop pixels information, per objects
|
- added: scene resolution in json crop pixels information, per objects
|
||||||
- changed: fixed name `crop_infos.json` for exported crop pixels information
|
- changed: fixed name `crop_infos.json` for exported crop pixels information
|
||||||
|
- changed: auto-crop ignore `MA_` prefixed layers
|
||||||
|
|
||||||
1.3.5
|
1.3.5
|
||||||
|
|
||||||
|
|
4
fn.py
4
fn.py
|
@ -1341,7 +1341,7 @@ def get_gp_box_all_frame_selection(oblist=None, scn=None, cam=None, timeout=40):
|
||||||
scn.frame_set(num)
|
scn.frame_set(num)
|
||||||
for ob in oblist:
|
for ob in oblist:
|
||||||
for l in ob.data.layers:
|
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
|
continue
|
||||||
if not l.active_frame:
|
if not l.active_frame:
|
||||||
continue
|
continue
|
||||||
|
@ -1358,7 +1358,7 @@ def get_gp_box_all_frame_selection(oblist=None, scn=None, cam=None, timeout=40):
|
||||||
for ob in oblist:
|
for ob in oblist:
|
||||||
# if object is not animated no need to frame_set to update object position
|
# if object is not animated no need to frame_set to update object position
|
||||||
for l in ob.data.layers:
|
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
|
continue
|
||||||
for f in l.frames:
|
for f in l.frames:
|
||||||
if time() - t0 > timeout:
|
if time() - t0 > timeout:
|
||||||
|
|
Loading…
Reference in New Issue