ayon-core/server_addon/harmony/server/settings/main.py
Jakub Trllo 2b37b8af48
AYON: Addon settings in OpenPype (#5347)
* copied addons from 'ayon-addon-settings'

* added AE, photoshop and harmony addon

* moved openpype to subfolder

* cleanup repository files

* updated create package script and README.md

* formatting fixes

* added cli flags to be able keep server structure

* print progress and output dir

* another formatting fixes
2023-07-26 14:08:42 +02:00

68 lines
1.6 KiB
Python

from pydantic import Field
from ayon_server.settings import BaseSettingsModel
from .imageio import HarmonyImageIOModel
from .load import HarmonyLoadModel
from .publish_plugins import HarmonyPublishPlugins
class HarmonySettings(BaseSettingsModel):
"""Harmony Project Settings."""
imageio: HarmonyImageIOModel = Field(
default_factory=HarmonyImageIOModel,
title="OCIO config"
)
load: HarmonyLoadModel = Field(
default_factory=HarmonyLoadModel,
title="Loader plugins"
)
publish: HarmonyPublishPlugins = Field(
default_factory=HarmonyPublishPlugins,
title="Publish plugins"
)
DEFAULT_HARMONY_SETTING = {
"load": {
"ImageSequenceLoader": {
"family": [
"shot",
"render",
"image",
"plate",
"reference"
],
"representations": [
"jpeg",
"png",
"jpg"
]
}
},
"publish": {
"CollectPalettes": {
"allowed_tasks": [
".*"
]
},
"ValidateAudio": {
"enabled": True,
"optional": True,
"active": True
},
"ValidateContainers": {
"enabled": True,
"optional": True,
"active": True
},
"ValidateSceneSettings": {
"enabled": True,
"optional": True,
"active": True,
"frame_check_filter": [],
"skip_resolution_check": [],
"skip_timelines_check": []
}
}
}