mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
* 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
42 lines
873 B
Python
42 lines
873 B
Python
from pydantic import Field
|
|
from ayon_server.settings import BaseSettingsModel
|
|
|
|
|
|
class MenuShortcut(BaseSettingsModel):
|
|
"""Nuke general project settings."""
|
|
|
|
create: str = Field(
|
|
title="Create..."
|
|
)
|
|
publish: str = Field(
|
|
title="Publish..."
|
|
)
|
|
load: str = Field(
|
|
title="Load..."
|
|
)
|
|
manage: str = Field(
|
|
title="Manage..."
|
|
)
|
|
build_workfile: str = Field(
|
|
title="Build Workfile..."
|
|
)
|
|
|
|
|
|
class GeneralSettings(BaseSettingsModel):
|
|
"""Nuke general project settings."""
|
|
|
|
menu: MenuShortcut = Field(
|
|
default_factory=MenuShortcut,
|
|
title="Menu Shortcuts",
|
|
)
|
|
|
|
|
|
DEFAULT_GENERAL_SETTINGS = {
|
|
"menu": {
|
|
"create": "ctrl+alt+c",
|
|
"publish": "ctrl+alt+p",
|
|
"load": "ctrl+alt+l",
|
|
"manage": "ctrl+alt+m",
|
|
"build_workfile": "ctrl+alt+b"
|
|
}
|
|
}
|