[nodes] SfMPoseInjecting: Update doc, labels and descriptions

This commit is contained in:
Candice Bentéjac 2024-11-14 12:51:15 +01:00
parent 670d949c59
commit c0c988c4f2

View file

@ -7,13 +7,13 @@ import json
class SfMPoseInjecting(desc.AVCommandLineNode): class SfMPoseInjecting(desc.AVCommandLineNode):
commandLine = 'aliceVision_sfmPoseInjecting {allParams}' commandLine = "aliceVision_sfmPoseInjecting {allParams}"
size = desc.DynamicNodeSize('input') size = desc.DynamicNodeSize("input")
category = "Utils" category = "Utils"
documentation = """ documentation = """
Use a json file to inject poses inside sfmData Use a JSON file to inject poses inside the SfMData.
""" """
inputs = [ inputs = [
desc.File( desc.File(
@ -24,15 +24,15 @@ class SfMPoseInjecting(desc.AVCommandLineNode):
), ),
desc.File( desc.File(
name="posesFilename", name="posesFilename",
label="Json file", label="Poses",
description="Input poses file.", description="Input JSON file containing the poses.",
value="", value="",
), ),
desc.ChoiceParam( desc.ChoiceParam(
name="rotationFormat", name="rotationFormat",
label="Rotation format", label="Rotation Format",
description="Defines the rotation format for the input poses" description="Defines the rotation format for the input poses:\n"
" - EulerZXY : Euler rotation in degrees (Y*X*Z)", " - EulerZXY: Euler rotation in degrees (Y*X*Z)",
values=["EulerZXY"], values=["EulerZXY"],
value="EulerZXY", value="EulerZXY",
), ),
@ -42,14 +42,14 @@ class SfMPoseInjecting(desc.AVCommandLineNode):
description="Verbosity level (fatal, error, warning, info, debug, trace).", description="Verbosity level (fatal, error, warning, info, debug, trace).",
values=VERBOSE_LEVEL, values=VERBOSE_LEVEL,
value="info", value="info",
) ),
] ]
outputs = [ outputs = [
desc.File( desc.File(
name="output", name="output",
label="SfM File", label="SfMData",
description="Path to the output SfM file.", description="Path to the output SfM file.",
value=desc.Node.internalFolder + "sfmData.sfm", value=desc.Node.internalFolder + "sfmData.sfm",
) ),
] ]