Skip to content

publish_plugins

CollectColorCodedInstancesPlugin

Bases: BaseSettingsModel

Set color for publishable layers, set its resulting product base 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
class CollectColorCodedInstancesPlugin(BaseSettingsModel):
    """Set color for publishable layers, set its resulting product base 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
 99
100
101
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
104
105
106
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
122
123
124
125
126
127
128
129
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
139
140
141
142
143
144
145
146
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.",
    )

ValidateDocumentSettingsPlugin

Bases: BaseSettingsModel

Validate document resolution, color mode and bit depth.

Source code in server/settings/publish_plugins.py
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
class ValidateDocumentSettingsPlugin(BaseSettingsModel):
    """Validate document resolution, color mode and bit depth."""
    enabled: bool = SettingsField(True, title="Enabled")
    optional: bool = SettingsField(True, title="Optional")
    active: bool = SettingsField(True, title="Active")
    expected_dpi: int = SettingsField(72, title="Expected DPI")
    expected_mode: str = SettingsField(
        "RGB",
        title="Expected Color Mode",
        enum_resolver=lambda: color_mode_enum,
    )
    expected_bits: str = SettingsField(
        "8",
        title="Expected Bit Depth",
        enum_resolver=lambda: bit_depth_enum,
    )

ValidateNamingPlugin

Bases: BaseSettingsModel

Validate naming of products and layers

Source code in server/settings/publish_plugins.py
109
110
111
112
113
114
115
116
117
118
119
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"
    )