[nodes] update desc for nodes in panoramaHDR pipeline to visualize their output

This commit is contained in:
Loïc Vital 2022-09-28 17:29:32 +02:00 committed by Fabien Castan
parent a36abd99a6
commit a94be6c6a0
4 changed files with 15 additions and 2 deletions

View file

@ -12,7 +12,7 @@ def outputImagesValueFunct(attr):
if inputExt in ['.abc', '.sfm']:
# If we have an SfM in input
return desc.Node.internalFolder + '*' + (outputExt or '.*')
return desc.Node.internalFolder + '<VIEW_ID>' + (outputExt or '.*')
if inputExt:
# if we have one or multiple files in input
@ -342,6 +342,7 @@ Convert or apply filtering to the input images.
name='outputImages',
label='Output Images',
description='Output Image Files.',
semantic='image',
value= outputImagesValueFunct,
group='', # do not export on the command line
uid=[],

View file

@ -71,6 +71,7 @@ Merge all inputs coming from the PanoramaCompositing node.
name='outputPanorama',
label='Output Folder',
description='',
semantic='image',
value=desc.Node.internalFolder + 'panorama.{outputFileTypeValue}',
uid=[],
),

View file

@ -97,4 +97,13 @@ Compute the image warping for each input image in the panorama coordinate system
value=desc.Node.internalFolder,
uid=[],
),
desc.File(
name='warping',
label='Image Warping',
description='',
group='', # do not export on the command line
semantic='image',
value=desc.Node.internalFolder+'<VIEW_ID>.exr',
uid=[]
),
]

View file

@ -197,7 +197,9 @@ FocusScope {
for (var i = 0; i < node.attributes.count; i++) {
var attr = node.attributes.at(i);
if (attr.name == attrName) {
return Filepath.stringToUrl(String(attr.value).replace("<VIEW_ID>", viewId));
let pattern = String(attr.value).replace("<VIEW_ID>", viewId);
let path = Filepath.globFirst(pattern);
return Filepath.stringToUrl(path);
}
}
return "";