use semantic field in file attributes to specify images and store displayed node in 2D viewer to adapt UI

This commit is contained in:
Loïc Vital 2022-09-20 18:26:20 +02:00 committed by Fabien Castan
parent fc5ab540f5
commit a574c0fc9b
9 changed files with 139 additions and 83 deletions

View file

@ -293,11 +293,27 @@ Use a downscale factor of one (full-resolution) only if the quality of the input
outputs = [
desc.File(
name='output',
label='Output',
label='Output Folder',
description='Output folder for generated depth maps.',
value=desc.Node.internalFolder,
uid=[],
),
desc.File(
name='depth',
label='Depth Maps',
description='Generated depth maps.',
semantic='image',
value=desc.Node.internalFolder + '<VIEW_ID>_depthMap.exr',
uid=[],
group='', # do not export on the command line
),
desc.File(
name='sim',
label='Sim Maps',
description='Generated sim maps.',
semantic='image',
value=desc.Node.internalFolder + '<VIEW_ID>_simMap.exr',
uid=[],
group='', # do not export on the command line
),
]
outputImageTypes = ['depth', 'sim']