[nodes] Change uid= into invalidate= for all nodes

This commit is contained in:
Candice Bentéjac 2024-09-05 17:05:45 +02:00
parent b726387534
commit 045c26cc46
81 changed files with 1109 additions and 1112 deletions

View file

@ -25,7 +25,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
label="Blender Command",
description="Command to launch Blender.",
value="blender",
uid=[],
invalidate=False,
group="",
),
desc.File(
@ -33,7 +33,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
label="Script",
description="Path to the internal script for rendering in Blender.",
value=os.path.join(currentDir, "scripts", "preview.py"),
uid=[],
invalidate=False,
group="",
advanced=True,
),
@ -42,28 +42,28 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
label="Cameras",
description="SfMData with the views, poses and intrinsics to use (in JSON format).",
value="",
uid=[0],
invalidate=True,
),
desc.File(
name="model",
label="Model",
description="Point cloud (.abc) or mesh (.obj) to render.",
value="",
uid=[0],
invalidate=True,
),
desc.BoolParam(
name="useBackground",
label="Display Background",
description="Use the undistorted images as background.",
value=True,
uid=[0],
invalidate=True,
),
desc.File(
name="undistortedImages",
label="Undistorted Images",
description="Folder containing the undistorted images.",
value="",
uid=[0],
invalidate=True,
enabled=lambda node: node.useBackground.value,
),
desc.BoolParam(
@ -71,14 +71,14 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
label="Apply Masks",
description="Apply mask to the rendered geometry.",
value=True,
uid=[0],
invalidate=True,
),
desc.File(
name="masks",
label="Masks",
description="Folder containing the masks.",
value="",
uid=[0],
invalidate=True,
enabled=lambda node: node.useMasks.value,
),
desc.GroupAttribute(
@ -94,7 +94,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
description="Scale of particles used for the point cloud.",
value=0.01,
range=(0.01, 1.0, 0.01),
uid=[0],
invalidate=True,
),
desc.ChoiceParam(
name="particleColor",
@ -103,7 +103,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
value="Red",
values=["Grey", "White", "Red", "Green", "Magenta"],
exclusive=True,
uid=[0],
invalidate=True,
),
],
),
@ -121,7 +121,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
value="wireframe",
values=["wireframe", "line_art"],
exclusive=True,
uid=[0],
invalidate=True,
),
desc.ChoiceParam(
name="edgeColor",
@ -130,7 +130,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
value="Red",
values=["Grey", "White", "Red", "Green", "Magenta"],
exclusive=True,
uid=[0],
invalidate=True,
),
],
),
@ -142,7 +142,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
label="Output",
description="Output folder.",
value=desc.Node.internalFolder,
uid=[],
invalidate=False,
),
desc.File(
name="frames",
@ -150,7 +150,7 @@ One frame per viewpoint will be rendered, and the undistorted views can optional
description="Frames rendered in Blender.",
semantic="image",
value=desc.Node.internalFolder + "<FILESTEM>_preview.jpg",
uid=[],
invalidate=False,
group="",
),
]