[nodes] D-G: 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.
This commit is contained in:
Candice Bentéjac 2023-06-16 10:31:03 +02:00
parent 241bead35c
commit 5c2865968d
11 changed files with 971 additions and 935 deletions

View file

@ -14,71 +14,73 @@ Based on the input image filenames, it will recognize the input video sequence t
inputs = [
desc.File(
name='input',
label='Input SfMData',
description='SfMData file containing a complete SfM.',
value='',
name="input",
label="Input SfMData",
description="SfMData file containing a complete SfM.",
value="",
uid=[0],
),
desc.File(
name='sfmDataFilter',
label='SfMData Filter',
description='Filter out cameras from the export if they are part of this SfMData. Export all cameras if empty.',
value='',
name="sfmDataFilter",
label="SfMData Filter",
description="Filter out cameras from the export if they are part of this SfMData.\n"
"If empty, export all cameras.",
value="",
uid=[0],
),
desc.File(
name='viewFilter',
label='View Filter',
description='Select the cameras to export using an expression based on the image filepath. Export all cameras if empty.',
value='',
name="viewFilter",
label="View Filter",
description="Select the cameras to export using an expression based on the image filepath.\n"
"If empty, export all cameras.",
value="",
uid=[0],
),
desc.BoolParam(
name='exportUVMaps',
label='Export UV Maps',
description='Export UV Maps, absolutes values (x,y) of distortion are encoding in UV channels.',
name="exportUVMaps",
label="Export UV Maps",
description="Export UV maps. Absolutes values (x, y) of distortion are encoded in UV channels.",
value=True,
uid=[0],
),
desc.BoolParam(
name='exportUndistortedImages',
label='Export Undistorted Images',
description='Export Undistorted Images.',
name="exportUndistortedImages",
label="Export Undistorted Images",
description="Export undistorted images.",
value=False,
uid=[0],
),
desc.ChoiceParam(
name='undistortedImageType',
label='Undistort Image Format ',
description='Image file format to use for undistorted images ("jpg", "png", "tif", "exr (half)").',
value='exr',
values=['jpg', 'png', 'tif', 'exr'],
name="undistortedImageType",
label="Undistort Image Format",
description="Image file format to use for undistorted images ('jpg', 'png', 'tif', 'exr (half)').",
value="exr",
values=["jpg", "png", "tif", "exr"],
exclusive=True,
uid=[0],
enabled= lambda node: node.exportUndistortedImages.value,
),
desc.BoolParam(
name='exportFullROD',
label='Export Full ROD',
description='Export Full ROD.',
name="exportFullROD",
label="Export Full ROD",
description="Export full ROD.",
value=False,
enabled=lambda node: node.exportUndistortedImages.value and node.undistortedImageType.value == 'exr',
enabled=lambda node: node.exportUndistortedImages.value and node.undistortedImageType.value == "exr",
uid=[0],
),
desc.BoolParam(
name='correctPrincipalPoint',
label='Correct Principal Point ',
description='Correct Principal Point.',
name="correctPrincipalPoint",
label="Correct Principal Point",
description="Correct principal point.",
value=True,
uid=[0],
),
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'],
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=[],
),
@ -86,26 +88,26 @@ Based on the input image filenames, it will recognize the input video sequence t
outputs = [
desc.File(
name='output',
label='Folder',
description='Output folder with animated camera and undistorted images.',
name="output",
label="Folder",
description="Output folder with animated camera and undistorted images.",
value=desc.Node.internalFolder,
uid=[],
),
desc.File(
name='outputCamera',
label='Camera',
description='Output filename for the animated camera in Alembic format.',
value=desc.Node.internalFolder + 'camera.abc',
group='', # exclude from command line
name="outputCamera",
label="Camera",
description="Output filename for the animated camera in Alembic format.",
value=desc.Node.internalFolder + "camera.abc",
group="", # exclude from command line
uid=[],
),
desc.File(
name='outputUndistorted',
label='Undistorted Images',
description='Output Undistorted images.',
value=desc.Node.internalFolder + 'undistort',
group='', # exclude from command line
name="outputUndistorted",
label="Undistorted Images",
description="Output undistorted images.",
value=desc.Node.internalFolder + "undistort",
group="", # exclude from command line
uid=[],
),
]