mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-06 21:01:59 +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 inputExt in ['.abc', '.sfm']:
|
||||||
# If we have an SfM in input
|
# If we have an SfM in input
|
||||||
return desc.Node.internalFolder + '*' + (outputExt or '.*')
|
return desc.Node.internalFolder + '<VIEW_ID>' + (outputExt or '.*')
|
||||||
|
|
||||||
if inputExt:
|
if inputExt:
|
||||||
# if we have one or multiple files in input
|
# if we have one or multiple files in input
|
||||||
|
@ -342,6 +342,7 @@ Convert or apply filtering to the input images.
|
||||||
name='outputImages',
|
name='outputImages',
|
||||||
label='Output Images',
|
label='Output Images',
|
||||||
description='Output Image Files.',
|
description='Output Image Files.',
|
||||||
|
semantic='image',
|
||||||
value= outputImagesValueFunct,
|
value= outputImagesValueFunct,
|
||||||
group='', # do not export on the command line
|
group='', # do not export on the command line
|
||||||
uid=[],
|
uid=[],
|
||||||
|
|
|
@ -71,6 +71,7 @@ Merge all inputs coming from the PanoramaCompositing node.
|
||||||
name='outputPanorama',
|
name='outputPanorama',
|
||||||
label='Output Folder',
|
label='Output Folder',
|
||||||
description='',
|
description='',
|
||||||
|
semantic='image',
|
||||||
value=desc.Node.internalFolder + 'panorama.{outputFileTypeValue}',
|
value=desc.Node.internalFolder + 'panorama.{outputFileTypeValue}',
|
||||||
uid=[],
|
uid=[],
|
||||||
),
|
),
|
||||||
|
|
|
@ -97,4 +97,13 @@ Compute the image warping for each input image in the panorama coordinate system
|
||||||
value=desc.Node.internalFolder,
|
value=desc.Node.internalFolder,
|
||||||
uid=[],
|
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++) {
|
for (var i = 0; i < node.attributes.count; i++) {
|
||||||
var attr = node.attributes.at(i);
|
var attr = node.attributes.at(i);
|
||||||
if (attr.name == attrName) {
|
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 "";
|
return "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue