[nodes] S-T: 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:32:01 +02:00
parent 41280dc22a
commit c498f48e1e
12 changed files with 798 additions and 777 deletions

View file

@ -18,48 +18,48 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
inputs = [
desc.File(
name='blenderCmd',
label='Blender Command',
description='Command to launch Blender',
value='blender',
name="blenderCmd",
label="Blender Command",
description="Command to launch Blender.",
value="blender",
uid=[],
group='',
group="",
),
desc.File(
name='script',
label='Script',
description='Path to the internal script for rendering in Blender',
value=os.path.join(currentDir, 'scripts' ,'preview.py'),
name="script",
label="Script",
description="Path to the internal script for rendering in Blender.",
value=os.path.join(currentDir, "scripts", "preview.py"),
uid=[],
group='',
group="",
advanced=True,
),
desc.File(
name='cameras',
label='Cameras',
description='SfmData with the views, poses and intrinsics to use (in JSON format)',
value='',
name="cameras",
label="Cameras",
description="SfMData with the views, poses and intrinsics to use (in JSON format).",
value="",
uid=[0],
),
desc.File(
name='model',
label='Model',
description='Point cloud (.abc) or mesh (.obj) to render',
value='',
name="model",
label="Model",
description="Point cloud (.abc) or mesh (.obj) to render.",
value="",
uid=[0],
),
desc.BoolParam(
name='useBackground',
label='Display Background',
description='Use the undistorted images as background',
name="useBackground",
label="Display Background",
description="Use the undistorted images as background.",
value=True,
uid=[0],
),
desc.File(
name='undistortedImages',
label='Undistorted Images',
description='Folder containing the undistorted images',
value='',
name="undistortedImages",
label="Undistorted Images",
description="Folder containing the undistorted images.",
value="",
uid=[0],
enabled=lambda node: node.useBackground.value,
),
@ -67,23 +67,23 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
name="pointCloudParams",
label="Point Cloud Settings",
group=None,
enabled=lambda node: node.model.value.lower().endswith('.abc'),
description="Settings for point cloud rendering",
enabled=lambda node: node.model.value.lower().endswith(".abc"),
description="Settings for point cloud rendering.",
groupDesc=[
desc.FloatParam(
name='particleSize',
label='Particle Size',
description='Scale of particles used for the point cloud',
name="particleSize",
label="Particle Size",
description="Scale of particles used for the point cloud.",
value=0.01,
range=(0.01, 1.0, 0.01),
uid=[0],
),
desc.ChoiceParam(
name='particleColor',
label='Particle Color',
description='Color of particles used for the point cloud',
value='Red',
values=['Grey', 'White', 'Red', 'Green', 'Magenta'],
name="particleColor",
label="Particle Color",
description="Color of particles used for the point cloud.",
value="Red",
values=["Grey", "White", "Red", "Green", "Magenta"],
exclusive=True,
uid=[0],
),
@ -93,24 +93,24 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
name="meshParams",
label="Mesh Settings",
group=None,
enabled=lambda node: node.model.value.lower().endswith('.obj'),
description="Setting for mesh rendering",
enabled=lambda node: node.model.value.lower().endswith(".obj"),
description="Setting for mesh rendering.",
groupDesc=[
desc.ChoiceParam(
name='shading',
label='Shading',
description='Shading method for visualizing the mesh',
value='wireframe',
values=['wireframe', 'line_art'],
name="shading",
label="Shading",
description="Shading method for visualizing the mesh.",
value="wireframe",
values=["wireframe", "line_art"],
exclusive=True,
uid=[0],
),
desc.ChoiceParam(
name='edgeColor',
label='Edge Color',
description='Color of the mesh edges',
value='Red',
values=['Grey', 'White', 'Red', 'Green', 'Magenta'],
name="edgeColor",
label="Edge Color",
description="Color of the mesh edges.",
value="Red",
values=["Grey", "White", "Red", "Green", "Magenta"],
exclusive=True,
uid=[0],
),
@ -120,19 +120,19 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
outputs = [
desc.File(
name='output',
label='Output',
description='Output folder',
name="output",
label="Output",
description="Output folder.",
value=desc.Node.internalFolder,
uid=[],
),
desc.File(
name='frames',
label='Frames',
description='Frames rendered in Blender',
semantic='image',
value=desc.Node.internalFolder + '<FILENAME>_preview.jpg',
name="frames",
label="Frames",
description="Frames rendered in Blender.",
semantic="image",
value=desc.Node.internalFolder + "<FILENAME>_preview.jpg",
uid=[],
group='',
group="",
),
]
]