add JOB path houdini setting

This commit is contained in:
Mustafa-Zarkash 2023-09-25 20:16:56 +03:00
parent 1bd07bd15b
commit a352a64680
6 changed files with 70 additions and 2 deletions

View 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]}"
}
}