mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
34 lines
778 B
Python
34 lines
778 B
Python
from pydantic import Field
|
|
from ayon_server.settings import BaseSettingsModel
|
|
|
|
|
|
class DirmapPathsSubmodel(BaseSettingsModel):
|
|
_layout = "compact"
|
|
source_path: list[str] = Field(
|
|
default_factory=list,
|
|
title="Source Paths"
|
|
)
|
|
destination_path: list[str] = Field(
|
|
default_factory=list,
|
|
title="Destination Paths"
|
|
)
|
|
|
|
|
|
class DirmapSettings(BaseSettingsModel):
|
|
"""Nuke color management project settings."""
|
|
_isGroup: bool = True
|
|
|
|
enabled: bool = Field(title="enabled")
|
|
paths: DirmapPathsSubmodel = Field(
|
|
default_factory=DirmapPathsSubmodel,
|
|
title="Dirmap Paths"
|
|
)
|
|
|
|
|
|
DEFAULT_DIRMAP_SETTINGS = {
|
|
"enabled": False,
|
|
"paths": {
|
|
"source_path": [],
|
|
"destination_path": []
|
|
}
|
|
}
|