mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 11:51:58 +02:00
[nodes] update desc for nodes in panoramaHDR pipeline to visualize their output
This commit is contained in:
parent
a36abd99a6
commit
a94be6c6a0
4 changed files with 15 additions and 2 deletions
|
@ -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=[],
|
||||
|
|
|
@ -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=[],
|
||||
),
|
||||
|
|
|
@ -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=[]
|
||||
),
|
||||
]
|
||||
|
|
|
@ -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 "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue