mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
* Substance Painter Addons for Ayon * hound * make sure the class name is SubstancePainterAddon * use AYON as tab menu name when it is launched with AYON --------- Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
26 lines
670 B
Python
26 lines
670 B
Python
from pydantic import Field
|
|
from ayon_server.settings import BaseSettingsModel
|
|
from .imageio import ImageIOSettings, DEFAULT_IMAGEIO_SETTINGS
|
|
|
|
|
|
class ShelvesSettingsModel(BaseSettingsModel):
|
|
_layout = "compact"
|
|
name: str = Field(title="Name")
|
|
value: str = Field(title="Path")
|
|
|
|
|
|
class SubstancePainterSettings(BaseSettingsModel):
|
|
imageio: ImageIOSettings = Field(
|
|
default_factory=ImageIOSettings,
|
|
title="Color Management (ImageIO)"
|
|
)
|
|
shelves: list[ShelvesSettingsModel] = Field(
|
|
default_factory=list,
|
|
title="Shelves"
|
|
)
|
|
|
|
|
|
DEFAULT_SPAINTER_SETTINGS = {
|
|
"imageio": DEFAULT_IMAGEIO_SETTINGS,
|
|
"shelves": []
|
|
}
|