Meshroom/meshroom/nodes/aliceVision/ConvertMesh.py
Candice Bentéjac 241bead35c [nodes] A-C: Harmonize and improve labels and descriptions
Use CamelCase for all labels, always end descriptions with periods, and
replace the mixed use of single and double quotes with double quotes
only.
2023-06-16 10:30:42 +02:00

49 lines
1.4 KiB
Python

__version__ = "1.0"
from meshroom.core import desc
class ConvertMesh(desc.AVCommandLineNode):
commandLine = 'aliceVision_convertMesh {allParams}'
category = 'Utils'
documentation = '''This node allows to convert a mesh to another format.'''
inputs = [
desc.File(
name="inputMesh",
label="Input Mesh",
description="Input mesh (*.obj, *.mesh, *.meshb, *.ply, *.off, *.stl).",
value="",
uid=[0],
),
desc.ChoiceParam(
name="outputMeshFileType",
label="File Type",
description="Output mesh format (*.obj, *.gltf, *.fbx, *.stl).",
value="obj",
values=("gltf", "obj", "fbx", "stl"),
exclusive=True,
uid=[0],
group="",
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
value="info",
values=["fatal", "error", "warning", "info", "debug", "trace"],
exclusive=True,
uid=[],
),
]
outputs = [
desc.File(
name="output",
label="Mesh",
description="Output mesh (*.obj, *.mesh, *.meshb, *.ply, *.off, *.stl).",
value=desc.Node.internalFolder + "mesh." + "{outputMeshFileTypeValue}",
uid=[],
),
]