mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
__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 = 'Utils'
|
|
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=desc.Node.internalFolder + "output.{fileTypeValue}",
|
|
),
|
|
]
|