-
-
Notifications
You must be signed in to change notification settings - Fork 873
Expand file tree
/
Copy pathExportMeshUSD.py
More file actions
44 lines (38 loc) · 1.18 KB
/
ExportMeshUSD.py
File metadata and controls
44 lines (38 loc) · 1.18 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
__version__ = "1.0"
from meshroom.core import desc
from meshroom.core.utils import VERBOSE_LEVEL
class ExportMeshUSD(desc.AVCommandLineNode):
commandLine = "aliceVision_exportMeshUSD {allParams}"
size = desc.DynamicNodeSize("input")
category = "Export"
documentation = """ Export a mesh (OBJ file) to USD format. """
inputs = [
desc.File(
name="input",
label="Input",
description="Input mesh file.",
value="",
),
desc.ChoiceParam(
name="fileType",
label="USD File Format",
description="Output USD file format.",
value="usda",
values=["usda", "usdc", "usdz"]
),
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="Output",
description="Path to the output file.",
value="{nodeCacheFolder}/output.{fileTypeValue}",
),
]