Skip to content

publish_plugins

CollectColorCodedInstancesPlugin

Bases: BaseSettingsModel

Set color for publishable layers, set its resulting product type and template for product name. Can create flatten image from published instances. (Applicable only for remote publishing!)

Source code in server/settings/publish_plugins.py
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
class CollectColorCodedInstancesPlugin(BaseSettingsModel):
    """Set color for publishable layers, set its resulting product type
    and template for product name. \n Can create flatten image from published
    instances.
    (Applicable only for remote publishing!)"""

    enabled: bool = SettingsField(True, title="Enabled")
    create_flatten_image: str = SettingsField(
        "",
        title="Create flatten image",
        enum_resolver=lambda: create_flatten_image_enum,
    )

    flatten_product_name_template: str = SettingsField(
        "",
        title="Product name template for flatten image"
    )

    color_code_mapping: list[ColorCodeMappings] = SettingsField(
        title="Color code mappings",
        default_factory=ColorCodeMappings,
    )

CollectReviewPlugin

Bases: BaseSettingsModel

Should review product be created

Source code in server/settings/publish_plugins.py
82
83
84
class CollectReviewPlugin(BaseSettingsModel):
    """Should review product be created"""
    enabled: bool = SettingsField(True, title="Enabled")

CollectVersionPlugin

Bases: BaseSettingsModel

Synchronize version for image and review instances by workfile version

Source code in server/settings/publish_plugins.py
87
88
89
class CollectVersionPlugin(BaseSettingsModel):
    """Synchronize version for image and review instances by workfile version"""  # noqa
    enabled: bool = SettingsField(True, title="Enabled")

ExtractImagePlugin

Bases: BaseSettingsModel

Extracts image products and representations per published instance

Source code in server/settings/publish_plugins.py
105
106
107
108
109
110
111
112
class ExtractImagePlugin(BaseSettingsModel):
    """Extracts image products and representations per published instance"""

    formats: list[str] = SettingsField(
        title="Extract Formats",
        default_factory=list,
        enum_resolver=lambda: extract_image_ext_enum,
    )

ExtractLayersPlugin

Bases: BaseSettingsModel

Export layers within the instance layerset to a PSD file.

Source code in server/settings/publish_plugins.py
122
123
124
125
126
127
128
129
class ExtractLayersPlugin(BaseSettingsModel):
    """Export layers within the instance layerset to a PSD file."""
    enabled: bool = SettingsField(False, title="Enabled")
    merge_layersets: bool = SettingsField(
        False,
        title="Merge Layersets",
        description="Merge all layersets within the instance set.",
    )

ValidateNamingPlugin

Bases: BaseSettingsModel

Validate naming of products and layers

Source code in server/settings/publish_plugins.py
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
class ValidateNamingPlugin(BaseSettingsModel):
    """Validate naming of products and layers"""  # noqa
    invalid_chars: str = SettingsField(
        '',
        title="Regex pattern of invalid characters"
    )

    replace_char: str = SettingsField(
        '',
        title="Replacement character"
    )