[nodes] Masking: Add parameter to specify the extension of the masks

Add the `maskExtension` parameter to specify the extension (by default,
"png") of the masks that are to be loaded.
This commit is contained in:
Candice Bentéjac 2023-08-24 18:17:53 +02:00
parent 6af1607b35
commit f9d8a1da02
2 changed files with 20 additions and 2 deletions

View file

@ -1,4 +1,4 @@
__version__ = "1.0"
__version__ = "1.1"
from meshroom.core import desc
@ -47,6 +47,15 @@ Decimate triangles based on image masks.
label="Masks Folders",
description="Use masks from specific folder(s). Filename should be the same or the image UID.",
),
desc.ChoiceParam(
name="maskExtension",
label="Mask Extension",
description="File extension for the masks to use.",
value="png",
values=["exr", "jpg", "png"],
exclusive=True,
uid=[0]
),
desc.IntParam(
name="threshold",
label="Threshold",