-
-
Notifications
You must be signed in to change notification settings - Fork 873
Expand file tree
/
Copy pathExportUSD.py
More file actions
47 lines (41 loc) · 1.35 KB
/
ExportUSD.py
File metadata and controls
47 lines (41 loc) · 1.35 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
__version__ = "1.0"
from meshroom.core import desc
from meshroom.core.utils import VERBOSE_LEVEL
class ExportUSD(desc.AVCommandLineNode):
commandLine = "aliceVision_exportUSD {allParams}"
size = desc.DynamicNodeSize("input")
category = "Export"
documentation = """
Convert cameras from an SfM scene into an animated camera in USD format.
Based on the input image filenames, this node detects video sequences and creates the corresponding animated camera.
"""
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.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="USD filename",
description="Output usd filename",
value="{nodeCacheFolder}/animated.usda",
)
]