export main Scene crop with it's own name

main
Pullusb 2021-11-12 17:14:34 +01:00
parent 266079410a
commit e3f97e7e61
1 changed files with 1 additions and 1 deletions

2
fn.py
View File

@ -847,7 +847,7 @@ def export_crop_to_json():
## use name of first found visible GP (scene name if no visible GP)
gps = [o for o in scn.objects if o.type == 'GPENCIL' if is_render_included(o, scn)] # o.visible_get() < only work on active window
if gps:
if gps and scn.name != 'Scene': # always export Scene with Scene name...
for ob in gps:
coord_dic[ob.name] = scn_border
print(f'Added gp {ob.name} crop info')