Skip to content

Commit

Permalink
Merge pull request #52 from quadproduction/release/1.10.0
Browse files Browse the repository at this point in the history
release/1.10.0
  • Loading branch information
BenSouchet authored May 17, 2024
2 parents 850d43b + 47a690c commit 2c0a7e3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def apply_settings(self, project_settings, system_settings):
self.default_variant = plugin_settings["default_variant"]
self.default_variants = plugin_settings["default_variants"]
self.extract_psd = plugin_settings["extract_psd"]
self.apply_background = False
self.exports_types = ['camera', 'scene']
self.export_type = self.exports_types[0]
self.enabled = plugin_settings.get("enabled", True)
Expand All @@ -54,6 +55,7 @@ def _create_new_instance(self):
"variant": self.default_variant,
"creator_attributes": {
"mark_for_review": self.mark_for_review,
"apply_background": self.apply_background,
"export_type": self.export_type,
"extract_psd": self.extract_psd
},
Expand Down Expand Up @@ -124,6 +126,11 @@ def get_instance_attr_defs(self):
label="Review",
default=self.mark_for_review
),
BoolDef(
"apply_background",
label="Apply background color (as defined in settings)",
default=self.apply_background
),
BoolDef(
"extract_psd",
label="Extract PSD",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TVPaintPublishLayoutCreator(TVPaintAutoCreator):
family = "render"
subset_template_family_filter = "publish.sequence"
identifier = "publish.sequence"
label = "Publish Layout"
label = "Publish frame(s)"
icon = "fa.file-image-o"
host_name = "tvpaint"

Expand All @@ -32,6 +32,7 @@ def apply_settings(self, project_settings, system_settings):
self.default_variant = plugin_settings["default_variant"]
self.default_variants = plugin_settings["default_variants"]
self.extract_psd = plugin_settings["extract_psd"]
self.apply_background = False
self.enabled = plugin_settings.get("enabled", True)

def _create_new_instance(self):
Expand All @@ -56,7 +57,8 @@ def _create_new_instance(self):
"creator_attributes": {
"publish_sequence": self.publish_sequence,
"keep_layers_transparency": self.keep_layers_transparency,
"extract_psd": self.extract_psd
"extract_psd": self.extract_psd,
"apply_background": self.apply_background,
},
"label": self._get_label(subset_name),
"active": self.active_on_create
Expand Down Expand Up @@ -130,6 +132,11 @@ def get_instance_attr_defs(self):
label="Keep Layers Transparency",
default=self.keep_layers_transparency
),
BoolDef(
"apply_background",
label="Apply background color (as defined in settings)",
default=self.apply_background
),
BoolDef(
"extract_psd",
label="Extract PSD",
Expand Down
2 changes: 1 addition & 1 deletion quad_pyblish_module/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
"""File declaring package version."""

__version__ = "1.9.0"
__version__ = "1.10.0"

0 comments on commit 2c0a7e3

Please sign in to comment.