harmony read from settings

This commit is contained in:
Milan Kolar 2020-12-03 17:03:49 +01:00
parent d5b10b085e
commit 1838f70ae0
3 changed files with 44 additions and 3 deletions

View file

@ -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 = []

View file

@ -0,0 +1,7 @@
{
"publish": {},
"general": {
"skip_resolution_check": false,
"skip_timelines_check": false
}
}

View file

@ -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"
}
]
}]
}