mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
add JOB path houdini setting
This commit is contained in:
parent
1bd07bd15b
commit
a352a64680
6 changed files with 70 additions and 2 deletions
22
server_addon/houdini/server/settings/general.py
Normal file
22
server_addon/houdini/server/settings/general.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
from pydantic import Field
|
||||
from ayon_server.settings import BaseSettingsModel
|
||||
|
||||
|
||||
class JobPathModel(BaseSettingsModel):
|
||||
enabled: bool = Field(title="Enabled")
|
||||
path: str = Field(title="Path")
|
||||
|
||||
|
||||
class GeneralSettingsModel(BaseSettingsModel):
|
||||
JobPath: JobPathModel = Field(
|
||||
default_factory=JobPathModel,
|
||||
title="JOB Path"
|
||||
)
|
||||
|
||||
|
||||
DEFAULT_GENERAL_SETTINGS = {
|
||||
"JobPath": {
|
||||
"enabled": True,
|
||||
"path": "{root[work]}/{project[name]}/{hierarchy}/{asset}/work/{task[name]}"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue