[nodes] Use utilitary constants for most common ChoiceParams

This commit is contained in:
Candice Bentéjac 2024-02-08 16:05:33 +01:00
parent b8d14fe6be
commit 0f6ad22d11
73 changed files with 195 additions and 109 deletions

View file

@ -4,6 +4,7 @@ import json
import os
from meshroom.core import desc
from meshroom.core.utils import EXR_STORAGE_DATA_TYPE, VERBOSE_LEVEL
class PanoramaCompositing(desc.AVCommandLineNode):
@ -89,8 +90,8 @@ Multiple cameras are contributing to the low frequencies and only the best one c
" - half: Use half float (16 bits per channel).\n"
" - halfFinite: Use half float, but clamp values to avoid non-finite values.\n"
" - auto: Use half float if all values can fit, else use full float.",
values=EXR_STORAGE_DATA_TYPE,
value="float",
values=["float", "half", "halfFinite", "auto"],
exclusive=True,
uid=[0],
),
@ -112,8 +113,8 @@ Multiple cameras are contributing to the low frequencies and only the best one c
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
values=VERBOSE_LEVEL,
value="info",
values=["fatal", "error", "warning", "info", "debug", "trace"],
exclusive=True,
uid=[],
)