From 076d090de4485c3a784e1f7c79536c4cd1b1e0d7 Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Fri, 22 Oct 2021 17:45:43 +0200 Subject: [PATCH] add to imageio schema --- openpype/hosts/maya/api/lib.py | 3 ++ .../defaults/project_anatomy/imageio.json | 11 +++++++ .../schemas/schema_anatomy_imageio.json | 32 +++++++++++++++++++ 3 files changed, 46 insertions(+) diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index ce93b5d701..140ebc7f26 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -2,6 +2,7 @@ import re import os +import platform import uuid import math @@ -1885,6 +1886,8 @@ def set_context_settings(): # Set frame range. avalon.maya.interactive.reset_frame_range() + # Set colorspace + set_colorspace() # Valid FPS diff --git a/openpype/settings/defaults/project_anatomy/imageio.json b/openpype/settings/defaults/project_anatomy/imageio.json index 38313a3d84..2069777079 100644 --- a/openpype/settings/defaults/project_anatomy/imageio.json +++ b/openpype/settings/defaults/project_anatomy/imageio.json @@ -174,5 +174,16 @@ } ] } + }, + "maya": { + "colorManagmentPreference": { + "configFilePath": { + "windows": [], + "darwin": [], + "linux": [] + }, + "renderSpace": "scene-linear Rec 709/sRGB", + "viewTransform": "sRGB gamma" + } } } \ No newline at end of file diff --git a/openpype/settings/entities/schemas/projects_schema/schemas/schema_anatomy_imageio.json b/openpype/settings/entities/schemas/projects_schema/schemas/schema_anatomy_imageio.json index 3c589f9492..2bcdab8bc9 100644 --- a/openpype/settings/entities/schemas/projects_schema/schemas/schema_anatomy_imageio.json +++ b/openpype/settings/entities/schemas/projects_schema/schemas/schema_anatomy_imageio.json @@ -358,6 +358,38 @@ ] } ] + }, + { + "key": "maya", + "type": "dict", + "label": "Maya", + "children": [ + { + "key": "colorManagmentPreference", + "type": "dict", + "label": "Color Managment Preference", + "collapsible": false, + "children": [ + { + "type": "path", + "key": "configFilePath", + "label": "OCIO Config File Path", + "multiplatform": true, + "multipath": true + }, + { + "type": "text", + "key": "renderSpace", + "label": "Rendering Space" + }, + { + "type": "text", + "key": "viewTransform", + "label": "Viewer Transform" + } + ] + } + ] } ] }