diff --git a/pype/hosts/harmony/__init__.py b/pype/hosts/harmony/__init__.py index 7ea261292e..bc91b4db2f 100644 --- a/pype/hosts/harmony/__init__.py +++ b/pype/hosts/harmony/__init__.py @@ -9,7 +9,7 @@ import avalon.tools.sceneinventory import pyblish.api from pype import lib -from pype.api import config +from pype.api import get_current_project_settings def set_scene_settings(settings): @@ -51,9 +51,9 @@ def get_asset_settings(): try: skip_resolution_check = \ - config.get_presets()["harmony"]["general"]["skip_resolution_check"] + get_current_project_settings()["harmony"]["general"]["skip_resolution_check"] skip_timelines_check = \ - config.get_presets()["harmony"]["general"]["skip_timelines_check"] + get_current_project_settings()["harmony"]["general"]["skip_timelines_check"] except KeyError: skip_resolution_check = [] skip_timelines_check = [] diff --git a/pype/settings/defaults/project_settings/harmony.json b/pype/settings/defaults/project_settings/harmony.json new file mode 100644 index 0000000000..5eca4f60eb --- /dev/null +++ b/pype/settings/defaults/project_settings/harmony.json @@ -0,0 +1,7 @@ +{ + "publish": {}, + "general": { + "skip_resolution_check": false, + "skip_timelines_check": false + } +} \ No newline at end of file diff --git a/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_harmony.json b/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_harmony.json new file mode 100644 index 0000000000..282a4350b6 --- /dev/null +++ b/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_harmony.json @@ -0,0 +1,34 @@ +{ + "type": "dict", + "collapsable": true, + "key": "harmony", + "label": "Harmony", + "is_file": true, + "children": [ + { + "type": "dict", + "collapsable": true, + "key": "publish", + "label": "Publish plugins", + "children": [] + }, + { + "type": "dict", + "collapsable": true, + "key": "general", + "label": "General", + "children": [ + + { + "type": "boolean", + "key": "skip_resolution_check", + "label": "Skip Resolution Check" + }, + { + "type": "boolean", + "key": "skip_timelines_check", + "label": "Skip Timeliene Check" + } + ] + }] +}