mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
This is preparation for new version of pydantic which will require to customize the field for AYON purposes and raw pydantic Field could not be used.
62 lines
1.5 KiB
Python
62 lines
1.5 KiB
Python
from ayon_server.settings import BaseSettingsModel, SettingsField
|
|
|
|
from .imageio import HarmonyImageIOModel
|
|
from .publish_plugins import HarmonyPublishPlugins
|
|
|
|
|
|
class HarmonySettings(BaseSettingsModel):
|
|
"""Harmony Project Settings."""
|
|
|
|
imageio: HarmonyImageIOModel = SettingsField(
|
|
default_factory=HarmonyImageIOModel,
|
|
title="OCIO config"
|
|
)
|
|
publish: HarmonyPublishPlugins = SettingsField(
|
|
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": []
|
|
}
|
|
}
|
|
}
|