-
-
Notifications
You must be signed in to change notification settings - Fork 873
Expand file tree
/
Copy pathExportAlembic.py
More file actions
53 lines (47 loc) · 1.54 KB
/
ExportAlembic.py
File metadata and controls
53 lines (47 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
__version__ = "1.0"
from meshroom.core import desc
from meshroom.core.utils import VERBOSE_LEVEL
class ExportAlembic(desc.AVCommandLineNode):
"""
Convert cameras from an SfM scene into an animated cameras in Alembic file format.
Based on the input image filenames, it will recognize the input video sequence to create an animated camera.
"""
commandLine = "aliceVision_exportAlembic {allParams}"
size = desc.DynamicNodeSize("input")
category = "Export"
inputs = [
desc.File(
name="input",
label="Input SfMData",
description="SfMData file containing a complete SfM.",
value="",
),
desc.FloatParam(
name="frameRate",
label="Camera Frame Rate",
description="Define the camera's Frames per second.",
value=24.0,
range=(1.0, 60.0, 1.0),
),
desc.BoolParam(
name="exportLandmarks",
label="Export Landmarks",
description="If true, export SfM landmarks.",
value=False,
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
values=VERBOSE_LEVEL,
value="info",
),
]
outputs = [
desc.File(
name="output",
label="Alembic Filename",
description="Output alembic filename.",
value="{nodeCacheFolder}/animated.abc",
)
]