fix automerge - force set color
1.1.4 - Changed: force set color by prefix if autobuild option swiched on - fixed: problem with auto merge adjacent layers
This commit is contained in:
@@ -379,12 +379,15 @@ def export_gp_objects(oblist, exclude_list=[], scene=None):
|
||||
oblist = [oblist]
|
||||
if isinstance(exclude_list, str):
|
||||
exclude_list = [p.strip() for p in exclude_list.split(',')]
|
||||
|
||||
# print('exclude_list: ', exclude_list)
|
||||
|
||||
for ob in oblist:
|
||||
for l in ob.data.layers:
|
||||
# if l.hide:
|
||||
# continue
|
||||
if l.hide or any(x + '_' in l.info for x in exclude_list): # exclude hided ?
|
||||
print(f'Exclude export: {ob.name} : {l.info}')
|
||||
l.viewlayer_render = fn.get_view_layer('exclude', scene=scene).name # assign "exclude"
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user