Export USD node

This commit is contained in:
Fabien Servant 2025-02-10 08:53:47 +01:00
parent ebf2270d48
commit d9c5cb559e

View file

@ -0,0 +1,46 @@
__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}",
),
]