From f8d9251c618f450f8dc49a9f1336aae1452dcb44 Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Mon, 30 Oct 2017 17:04:37 +0100 Subject: [PATCH] [aliceVision] Add Viewpoint parameter on CameraInit --- meshroom/nodes/aliceVision/CameraInit.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/meshroom/nodes/aliceVision/CameraInit.py b/meshroom/nodes/aliceVision/CameraInit.py index 8fe6427f..75502e2a 100644 --- a/meshroom/nodes/aliceVision/CameraInit.py +++ b/meshroom/nodes/aliceVision/CameraInit.py @@ -1,12 +1,26 @@ import sys +from collections import OrderedDict import os + from meshroom.core import desc +Viewpoint = OrderedDict([ + ("path", desc.File(label="Image", description="Image filepath", value="", uid=[0], isOutput=False)), + ("focal", desc.FloatParam(label="Focal Length", description="Focal Length", value=0.0, uid=[0], range=(5, 200, 1))), +]) + + class CameraInit(desc.CommandLineNode): internalFolder = '{cache}/{nodeType}/{uid0}/' commandLine = 'aliceVision_cameraInit {allParams}' + viewpoints = desc.ListAttribute( + elementDesc=desc.GroupAttribute(label="Viewpoint", description="", groupDesc=Viewpoint, group='allParams'), + label="Viewpoints", + description="Input viewpoints", + group="" + ) imageDirectory = desc.File( label='Image Directory', description='''Input images folder.''', @@ -91,4 +105,4 @@ class CameraInit(desc.CommandLineNode): values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'], exclusive=True, uid=[], - ) \ No newline at end of file + )