Merge pull request #2667 from alicevision/dev/usdSupport

Export USD Node
This commit is contained in:
demoulinv 2025-02-26 10:57:11 +01:00 committed by GitHub
commit f901f814f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}",
),
]