mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
* updated nuke settings * added addon version to zip filename * fix Pattern type hint * added ignored subdirs for openpype * added titles to addons * type hint fix - again * modified settings conversion * updated aftereffects settings * updated blender settings * updated clockify settings * updated core settings * updated deadline settings * updated harmo settings * updated kistsu settings * updated maya settings * updated muster settings * updated royal render settings * updated timers manager settings * updated traypublisher settings * implemented conversion of rr paths * formatting fix
70 lines
1.9 KiB
Python
70 lines
1.9 KiB
Python
from pydantic import Field
|
|
from ayon_server.settings import BaseSettingsModel, MultiplatformPathModel
|
|
|
|
|
|
class CustomPath(MultiplatformPathModel):
|
|
_layout = "expanded"
|
|
|
|
|
|
class ServerListSubmodel(BaseSettingsModel):
|
|
_layout = "expanded"
|
|
name: str = Field("", title="Name")
|
|
value: CustomPath = Field(
|
|
default_factory=CustomPath
|
|
)
|
|
|
|
|
|
class CollectSequencesFromJobModel(BaseSettingsModel):
|
|
review: bool = Field(True, title="Generate reviews from sequences")
|
|
|
|
|
|
class PublishPluginsModel(BaseSettingsModel):
|
|
CollectSequencesFromJob: CollectSequencesFromJobModel = Field(
|
|
default_factory=CollectSequencesFromJobModel,
|
|
title="Collect Sequences from the Job"
|
|
)
|
|
|
|
|
|
class RoyalRenderSettings(BaseSettingsModel):
|
|
enabled: bool = True
|
|
# WARNING/TODO this needs change
|
|
# - both system and project settings contained 'rr_path'
|
|
# where project settings did choose one of rr_path from system settings
|
|
# that is not possible in AYON
|
|
rr_paths: list[ServerListSubmodel] = Field(
|
|
default_factory=list,
|
|
title="Royal Render Root Paths",
|
|
scope=["studio"],
|
|
)
|
|
# This was 'rr_paths' in project settings and should be enum of
|
|
# 'rr_paths' from system settings, but that's not possible in AYON
|
|
selected_rr_paths: list[str] = Field(
|
|
default_factory=list,
|
|
title="Selected Royal Render Paths",
|
|
section="---",
|
|
)
|
|
publish: PublishPluginsModel = Field(
|
|
default_factory=PublishPluginsModel,
|
|
title="Publish plugins",
|
|
)
|
|
|
|
|
|
DEFAULT_VALUES = {
|
|
"enabled": False,
|
|
"rr_paths": [
|
|
{
|
|
"name": "default",
|
|
"value": {
|
|
"windows": "",
|
|
"darwin": "",
|
|
"linux": ""
|
|
}
|
|
}
|
|
],
|
|
"selected_rr_paths": ["default"],
|
|
"publish": {
|
|
"CollectSequencesFromJob": {
|
|
"review": True
|
|
}
|
|
}
|
|
}
|