nuke: imageio from project settings with backward compatibility switch

This commit is contained in:
Jakub Jezek 2022-10-11 12:59:41 +02:00
parent 0c86f321b4
commit bbf3a8baae
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
3 changed files with 15 additions and 0 deletions

View file

@ -563,6 +563,14 @@ def get_node_path(path, padding=4):
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"]