mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Merge branch 'hotfix/option-to-disable-photoshop-exports' into develop
This commit is contained in:
commit
eea020eca7
2 changed files with 8 additions and 5 deletions
|
|
@ -13,6 +13,7 @@ class ExtractImage(pype.api.Extractor):
|
|||
label = "Extract Image"
|
||||
hosts = ["photoshop"]
|
||||
families = ["image"]
|
||||
formats = ["png", "jpg"]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
@ -32,10 +33,12 @@ class ExtractImage(pype.api.Extractor):
|
|||
if layer.id not in extract_ids:
|
||||
layer.Visible = False
|
||||
|
||||
save_options = {
|
||||
"png": photoshop.com_objects.PNGSaveOptions(),
|
||||
"jpg": photoshop.com_objects.JPEGSaveOptions()
|
||||
}
|
||||
save_options = {}
|
||||
if "png" in self.formats:
|
||||
save_options["png"] = photoshop.com_objects.PNGSaveOptions()
|
||||
if "jpg" in self.formats:
|
||||
save_options["jpg"] = photoshop.com_objects.JPEGSaveOptions()
|
||||
|
||||
file_basename = os.path.splitext(
|
||||
photoshop.app().ActiveDocument.Name
|
||||
)[0]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "2.11.0"
|
||||
__version__ = "2.11.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue