CG Pipelines: User interface refactor

This commit is contained in:
brothermechanic 2023-12-18 07:48:45 +00:00 committed by Igor Brylyov
parent e305d486f2
commit 021e5862ff
7 changed files with 431 additions and 280 deletions

View file

@ -51,6 +51,9 @@ def json_to_blend(js_data, **cg_config):
bobj = None
if js_data[fc_file][js_obj]['type'] == 'LCS':
if not js_obj.endswith(cg_config['lcs_inlet']) and not js_obj.endswith(cg_config['lcs_outlet']):
logger.info('LCS %s is not defined!', js_obj)
continue
bobj = bpy.data.objects.new(js_obj, None)
bobj.empty_display_type = 'ARROWS'
bobj.empty_display_size = round(random.uniform(0.05, 0.15), 3)