[nodes/ui] Fix ExportAnimatedCamera outputs for ScenePreview use

This commit is contained in:
Aurore LAFAURIE 2024-06-04 11:34:03 +02:00
parent 45fd86e51b
commit 926db43625
2 changed files with 10 additions and 2 deletions

View file

@ -107,10 +107,18 @@ Based on the input image filenames, it will recognize the input video sequence t
),
desc.File(
name="outputUndistorted",
label="Undistorted Folder",
description="Output undistorted folder.",
value=desc.Node.internalFolder + "undistort/",
group="", # exclude from command line
uid=[],
),
desc.File(
name="outputImages",
label="Undistorted Images",
description="Output undistorted images.",
semantic="image",
value=desc.Node.internalFolder + "undistort/" + "<INTRINSIC_ID>_<FILESTEM>.{undistortedImageTypeValue}",
semantic="image",
group="", # exclude from command line
uid=[],
),

View file

@ -247,7 +247,7 @@ class ViewpointWrapper(QObject):
""" Update internal members depending on PrepareDenseScene or ExportAnimatedCamera. """
# undistorted image path
if self._activeNode_ExportAnimatedCamera.node:
self._undistortedImagePath = FilepathHelper.resolve(FilepathHelper, self._activeNode_ExportAnimatedCamera.node.outputUndistorted.value, self._viewpoint)
self._undistortedImagePath = FilepathHelper.resolve(FilepathHelper, self._activeNode_ExportAnimatedCamera.node.outputImages.value, self._viewpoint)
self._principalPointCorrected = self._activeNode_ExportAnimatedCamera.node.correctPrincipalPoint.value
elif self._activeNode_PrepareDenseScene.node:
self._undistortedImagePath = FilepathHelper.resolve(FilepathHelper, self._activeNode_PrepareDenseScene.node.undistorted.value, self._viewpoint)