[nodes] Replace the list of colorspaces with the utilitary constant

This commit is contained in:
Fabien Castan 2024-02-01 18:18:55 +01:00
parent a7fc167512
commit 092dcfe722
9 changed files with 27 additions and 14 deletions

View file

@ -6,6 +6,7 @@ import os
from collections import Counter
from meshroom.core import desc
from meshroom.core.utils import COLORSPACES
def findMetadata(d, keys, defaultValue):
@ -126,8 +127,8 @@ Sample pixels from Low range images for HDR creation.
label="Working Color Space",
description="Color space in which the data are processed.\n"
"If 'auto' is selected, the working color space will be 'Linear' if RAW images are detected; otherwise, it will be set to 'sRGB'.",
value="auto",
values=["auto", "sRGB", "Linear", "ACES2065-1", "ACEScg", "no_conversion"],
values=COLORSPACES,
value="AUTO",
exclusive=True,
uid=[0],
enabled=lambda node: node.byPass.enabled and not node.byPass.value,