mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
harmony read from settings
This commit is contained in:
parent
d5b10b085e
commit
1838f70ae0
3 changed files with 44 additions and 3 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):
|
||||
|
|
@ -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 = []
|
||||
|
|
|
|||
7
pype/settings/defaults/project_settings/harmony.json
Normal file
7
pype/settings/defaults/project_settings/harmony.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"publish": {},
|
||||
"general": {
|
||||
"skip_resolution_check": false,
|
||||
"skip_timelines_check": false
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue