mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +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.
55 lines
1.6 KiB
Python
55 lines
1.6 KiB
Python
from ayon_server.settings import BaseSettingsModel, SettingsField
|
|
|
|
from .imageio import AfterEffectsImageIOModel
|
|
from .creator_plugins import AfterEffectsCreatorPlugins
|
|
from .publish_plugins import (
|
|
AfterEffectsPublishPlugins,
|
|
AE_PUBLISH_PLUGINS_DEFAULTS,
|
|
)
|
|
from .workfile_builder import WorkfileBuilderPlugin
|
|
from .templated_workfile_build import TemplatedWorkfileBuildModel
|
|
|
|
|
|
class AfterEffectsSettings(BaseSettingsModel):
|
|
"""AfterEffects Project Settings."""
|
|
|
|
imageio: AfterEffectsImageIOModel = SettingsField(
|
|
default_factory=AfterEffectsImageIOModel,
|
|
title="OCIO config"
|
|
)
|
|
create: AfterEffectsCreatorPlugins = SettingsField(
|
|
default_factory=AfterEffectsCreatorPlugins,
|
|
title="Creator plugins"
|
|
)
|
|
publish: AfterEffectsPublishPlugins = SettingsField(
|
|
default_factory=AfterEffectsPublishPlugins,
|
|
title="Publish plugins"
|
|
)
|
|
workfile_builder: WorkfileBuilderPlugin = SettingsField(
|
|
default_factory=WorkfileBuilderPlugin,
|
|
title="Workfile Builder"
|
|
)
|
|
templated_workfile_build: TemplatedWorkfileBuildModel = SettingsField(
|
|
default_factory=TemplatedWorkfileBuildModel,
|
|
title="Templated Workfile Build Settings"
|
|
)
|
|
|
|
|
|
DEFAULT_AFTEREFFECTS_SETTING = {
|
|
"create": {
|
|
"RenderCreator": {
|
|
"mark_for_review": True,
|
|
"default_variants": [
|
|
"Main"
|
|
]
|
|
}
|
|
},
|
|
"publish": AE_PUBLISH_PLUGINS_DEFAULTS,
|
|
"workfile_builder": {
|
|
"create_first_version": False,
|
|
"custom_templates": []
|
|
},
|
|
"templated_workfile_build": {
|
|
"profiles": []
|
|
},
|
|
}
|