update comment
parent
d99199ed48
commit
7f359dd910
|
@ -63,10 +63,10 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
print('-- Auto-build Render scene --\n')
|
print('-- Auto-build Render scene --\n')
|
||||||
## TODO: Add colors to layers (specified in ENV or hardcoded for now...)
|
|
||||||
## Option: Maybe find a way to create a color from prefix hash ? (always give unique color with same prefix on other project!)
|
|
||||||
|
|
||||||
prefix_to_render = ['CO', 'CU', 'FX', 'TO', 'MA'] # TODO : add to preferences / environment var
|
## Prefix Filter
|
||||||
|
## TODO : add to preferences / environment var
|
||||||
|
prefix_to_render = ['CO', 'CU', 'FX', 'TO', 'MA']
|
||||||
|
|
||||||
render_scn = bpy.data.scenes.get('Render')
|
render_scn = bpy.data.scenes.get('Render')
|
||||||
if render_scn:
|
if render_scn:
|
||||||
|
@ -97,7 +97,8 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator):
|
||||||
for o in ob_list:
|
for o in ob_list:
|
||||||
print(f' - {o.name}')
|
print(f' - {o.name}')
|
||||||
|
|
||||||
# Set layers colors (skip if colors were already set ?)
|
## Set layers colors (skip if colors were already set ?)
|
||||||
|
## Option: Maybe find a way to create a color from prefix hash ? (always give unique color with same prefix on other project!)
|
||||||
fn.set_layer_colors(skip_if_colored=True)
|
fn.set_layer_colors(skip_if_colored=True)
|
||||||
|
|
||||||
## Trigger rename lowercase
|
## Trigger rename lowercase
|
||||||
|
|
Loading…
Reference in New Issue