mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
nuke: imageio from project settings with backward compatibility switch
This commit is contained in:
parent
0c86f321b4
commit
bbf3a8baae
3 changed files with 15 additions and 0 deletions
|
|
@ -563,6 +563,14 @@ def get_node_path(path, padding=4):
|
||||||
|
|
||||||
|
|
||||||
def get_nuke_imageio_settings():
|
def get_nuke_imageio_settings():
|
||||||
|
project_imageio = get_project_settings(
|
||||||
|
Context.project_name)["nuke"]["imageio"]
|
||||||
|
|
||||||
|
# backward compatibility for project started before 3.10
|
||||||
|
# those are still having `__legacy__` knob types
|
||||||
|
if not project_imageio["enabled"]:
|
||||||
|
return get_anatomy_settings(Context.project_name)["imageio"]["nuke"]
|
||||||
|
|
||||||
return get_project_settings(Context.project_name)["nuke"]["imageio"]
|
return get_project_settings(Context.project_name)["nuke"]["imageio"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"imageio": {
|
"imageio": {
|
||||||
|
"enabled": false,
|
||||||
"viewer": {
|
"viewer": {
|
||||||
"viewerProcess": "sRGB"
|
"viewerProcess": "sRGB"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,15 @@
|
||||||
"key": "imageio",
|
"key": "imageio",
|
||||||
"type": "dict",
|
"type": "dict",
|
||||||
"label": "Color Management (ImageIO)",
|
"label": "Color Management (ImageIO)",
|
||||||
|
"checkbox_key": "enabled",
|
||||||
"collapsible": true,
|
"collapsible": true,
|
||||||
"is_group": true,
|
"is_group": true,
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "boolean",
|
||||||
|
"key": "enabled",
|
||||||
|
"label": "Enabled"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "viewer",
|
"key": "viewer",
|
||||||
"type": "dict",
|
"type": "dict",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue