Harmony to Deadline - fix usage of Settings for Pype3

This commit is contained in:
Petr Kalis 2021-01-22 12:38:33 +01:00
parent 32ee745d1f
commit 9ff4be8f73
3 changed files with 12 additions and 9 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):
@ -48,12 +48,13 @@ def get_asset_settings():
"resolutionWidth": resolution_width,
"resolutionHeight": resolution_height
}
settings = get_current_project_settings()
try:
skip_resolution_check = \
config.get_presets()["harmony"]["general"]["skip_resolution_check"]
settings["harmony"]["general"]["skip_resolution_check"]
skip_timelines_check = \
config.get_presets()["harmony"]["general"]["skip_timelines_check"]
settings["harmony"]["general"]["skip_timelines_check"]
except KeyError:
skip_resolution_check = []
skip_timelines_check = []

View file

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

View file

@ -19,14 +19,16 @@
"label": "General",
"children": [
{
"type": "boolean",
"type": "list",
"key": "skip_resolution_check",
"label": "Skip Resolution Check"
"object_type": "text",
"label": "Skip Resolution Check for Tasks"
},
{
"type": "boolean",
"type": "list",
"key": "skip_timelines_check",
"label": "Skip Timeliene Check"
"object_type": "text",
"label": "Skip Timeliene Check for Tasks"
}
]
}