Skip to content

Commit 670d949

Browse files
author
Fabien Servant
committed
Pose Injecting node
1 parent 6c00826 commit 670d949

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
__version__ = "1.0"
2+
3+
from meshroom.core import desc
4+
from meshroom.core.utils import VERBOSE_LEVEL
5+
6+
import json
7+
8+
class SfMPoseInjecting(desc.AVCommandLineNode):
9+
10+
commandLine = 'aliceVision_sfmPoseInjecting {allParams}'
11+
size = desc.DynamicNodeSize('input')
12+
13+
category = "Utils"
14+
documentation = """
15+
Use a json file to inject poses inside sfmData
16+
"""
17+
18+
inputs = [
19+
desc.File(
20+
name="input",
21+
label="SfMData",
22+
description="Input SfMData file.",
23+
value="",
24+
),
25+
desc.File(
26+
name="posesFilename",
27+
label="Json file",
28+
description="Input poses file.",
29+
value="",
30+
),
31+
desc.ChoiceParam(
32+
name="rotationFormat",
33+
label="Rotation format",
34+
description="Defines the rotation format for the input poses"
35+
" - EulerZXY : Euler rotation in degrees (Y*X*Z)",
36+
values=["EulerZXY"],
37+
value="EulerZXY",
38+
),
39+
desc.ChoiceParam(
40+
name="verboseLevel",
41+
label="Verbose Level",
42+
description="Verbosity level (fatal, error, warning, info, debug, trace).",
43+
values=VERBOSE_LEVEL,
44+
value="info",
45+
)
46+
]
47+
48+
outputs = [
49+
desc.File(
50+
name="output",
51+
label="SfM File",
52+
description="Path to the output SfM file.",
53+
value=desc.Node.internalFolder + "sfmData.sfm",
54+
)
55+
]

0 commit comments

Comments
 (0)