nuke-addon: remove redundant workfile colorspace names

This commit is contained in:
Jakub Jezek 2023-09-06 16:53:41 +02:00
parent 8dd4b70aa3
commit 359ead27a2
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -66,22 +66,6 @@ def ocio_configs_switcher_enum():
class WorkfileColorspaceSettings(BaseSettingsModel):
"""Nuke workfile colorspace preset. """
"""# TODO: enhance settings with host api:
we need to add mapping to resolve properly keys.
Nuke is excpecting camel case key names,
but for better code consistency we need to
be using snake_case:
color_management = colorManagement
ocio_config = OCIO_config
working_space_name = workingSpaceLUT
monitor_name = monitorLut
monitor_out_name = monitorOutLut
int_8_name = int8Lut
int_16_name = int16Lut
log_name = logLut
float_name = floatLut
"""
colorManagement: Literal["Nuke", "OCIO"] = Field(
title="Color Management"
@ -100,18 +84,6 @@ class WorkfileColorspaceSettings(BaseSettingsModel):
monitorLut: str = Field(
title="Monitor"
)
int8Lut: str = Field(
title="8-bit files"
)
int16Lut: str = Field(
title="16-bit files"
)
logLut: str = Field(
title="Log files"
)
floatLut: str = Field(
title="Float files"
)
class ReadColorspaceRulesItems(BaseSettingsModel):
@ -238,10 +210,6 @@ DEFAULT_IMAGEIO_SETTINGS = {
"OCIO_config": "nuke-default",
"workingSpaceLUT": "linear",
"monitorLut": "sRGB",
"int8Lut": "sRGB",
"int16Lut": "sRGB",
"logLut": "Cineon",
"floatLut": "linear"
},
"nodes": {
"requiredNodes": [