mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Harmony to Deadline - fix usage of Settings for Pype3
This commit is contained in:
parent
32ee745d1f
commit
9ff4be8f73
3 changed files with 12 additions and 9 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"publish": {},
|
||||
"general": {
|
||||
"skip_resolution_check": false,
|
||||
"skip_timelines_check": false
|
||||
"skip_resolution_check": [],
|
||||
"skip_timelines_check": []
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue