mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
✨ add product base type definition 🔧
This commit is contained in:
parent
f3beea1ff8
commit
b26bf73be0
1 changed files with 47 additions and 0 deletions
47
client/ayon_core/pipeline/create/base_product_types.py
Normal file
47
client/ayon_core/pipeline/create/base_product_types.py
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
"""Base product types for the pipeline creation process."""
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class BaseProductType:
|
||||
"""Base class for product types."""
|
||||
name: str
|
||||
description: str
|
||||
icon: str = "cube"
|
||||
color: str = "#FFFFFF"
|
||||
|
||||
|
||||
@dataclass
|
||||
class Image(BaseProductType):
|
||||
"""Image product type."""
|
||||
name: str = "Image"
|
||||
description: str = "An image product."
|
||||
icon: str = "image"
|
||||
color: str = "#FF0000"
|
||||
|
||||
|
||||
@dataclass
|
||||
class Video(BaseProductType):
|
||||
"""Video product type."""
|
||||
name: str = "Video"
|
||||
description: str = "A video product."
|
||||
icon: str = "video"
|
||||
color: str = "#00FF00"
|
||||
|
||||
|
||||
@dataclass
|
||||
class Audio(BaseProductType):
|
||||
"""Audio product type."""
|
||||
name: str = "Audio"
|
||||
description: str = "An audio product."
|
||||
icon: str = "audio"
|
||||
color: str = "#0000FF"
|
||||
|
||||
|
||||
@dataclass
|
||||
class Model(BaseProductType):
|
||||
"""Document product type."""
|
||||
name: str = "Model"
|
||||
description: str = "A model product."
|
||||
icon: str = "model"
|
||||
color: str = "#FFFF00"
|
||||
Loading…
Add table
Add a link
Reference in a new issue