diff --git a/meshroom/nodes/aliceVision/PanoramaInit.py b/meshroom/nodes/aliceVision/PanoramaInit.py index 0d24bc9a..d1867dcf 100644 --- a/meshroom/nodes/aliceVision/PanoramaInit.py +++ b/meshroom/nodes/aliceVision/PanoramaInit.py @@ -51,16 +51,17 @@ class PanoramaInit(desc.CommandLineNode): description="Center of the Fisheye circle (XY offset to the center in pixels).", groupDesc=[ desc.FloatParam( - name="x", label="x", description="", + name="fisheyeCenterOffset_x", label="x", description="X Offset in pixels", value=0.0, uid=[0], range=(-1000.0, 10000.0, 1.0)), desc.FloatParam( - name="y", label="y", description="", + name="fisheyeCenterOffset_y", label="y", description="Y Offset in pixels", value=0.0, uid=[0], range=(-1000.0, 10000.0, 1.0)), ], + group=None, # skip group from command line ), desc.FloatParam( name='fisheyeRadius', diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index 041cee16..18d40df0 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -242,14 +242,14 @@ FocusScope { anchors.centerIn: parent active: (_reconstruction.panoramaInit && displayFisheyeCircleLoader.checked) sourceComponent: CircleGizmo { - x: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.x").value - y: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.y").value + x: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_x").value + y: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_y").value radius: (imgContainer.image ? Math.min(imgContainer.image.width, imgContainer.image.height) : 1.0) * 0.5 * (_reconstruction.panoramaInit.attribute("fisheyeRadius").value * 0.01) border.width: Math.max(1, (3.0 / imgContainer.scale)) onMoved: { - _reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeCenterOffset.x"), x) - _reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeCenterOffset.y"), y) + _reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_x"), x) + _reconstruction.setAttribute(_reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_y"), y) } } }