From b26bf73be00e96e4f5c054aeeb71cad5476b6577 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Fri, 16 May 2025 18:13:33 +0200 Subject: [PATCH] :sparkles: add product base type definition :wrench: --- .../pipeline/create/base_product_types.py | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 client/ayon_core/pipeline/create/base_product_types.py diff --git a/client/ayon_core/pipeline/create/base_product_types.py b/client/ayon_core/pipeline/create/base_product_types.py new file mode 100644 index 0000000000..8b7983814a --- /dev/null +++ b/client/ayon_core/pipeline/create/base_product_types.py @@ -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"