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

@ -1,4 +1,10 @@
{
"general": {
"job_path": {
"enabled": true,
"path": "{root[work]}/{project[name]}/{hierarchy}/{asset}/work/{task[name]}"
}
},
"imageio": {
"activate_host_color_management": true,
"ocio_config": {

View file

@ -5,6 +5,10 @@
"label": "Houdini",
"is_file": true,
"children": [
{
"type": "schema",
"name": "schema_houdini_general"
},
{
"key": "imageio",
"type": "dict",

View file

@ -0,0 +1,28 @@
{
"type": "dict",
"key": "general",
"label": "General",
"collapsible": true,
"is_group": true,
"children": [
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "job_path",
"label": "JOB Path",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "text",
"key": "path",
"label": "Path"
}
]
}
]
}

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

View file

@ -4,7 +4,10 @@ from ayon_server.settings import (
MultiplatformPathModel,
MultiplatformPathListModel,
)
from .general import (
GeneralSettingsModel,
DEFAULT_GENERAL_SETTINGS
)
from .imageio import HoudiniImageIOModel
from .publish_plugins import (
PublishPluginsModel,
@ -52,6 +55,10 @@ class ShelvesModel(BaseSettingsModel):
class HoudiniSettings(BaseSettingsModel):
general: GeneralSettingsModel = Field(
default_factory=GeneralSettingsModel,
title="General"
)
imageio: HoudiniImageIOModel = Field(
default_factory=HoudiniImageIOModel,
title="Color Management (ImageIO)"
@ -73,6 +80,7 @@ class HoudiniSettings(BaseSettingsModel):
DEFAULT_VALUES = {
"general": DEFAULT_GENERAL_SETTINGS,
"shelves": [],
"create": DEFAULT_HOUDINI_CREATE_SETTINGS,
"publish": DEFAULT_HOUDINI_PUBLISH_SETTINGS

View file

@ -1 +1 @@
__version__ = "0.1.3"
__version__ = "0.1.4"