mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 03:37:13 +02:00
Export USD node
This commit is contained in:
parent
ebf2270d48
commit
d9c5cb559e
1 changed files with 46 additions and 0 deletions
46
meshroom/nodes/aliceVision/ExportUSD.py
Normal file
46
meshroom/nodes/aliceVision/ExportUSD.py
Normal 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}",
|
||||||
|
),
|
||||||
|
]
|
Loading…
Add table
Reference in a new issue