mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
comments from https://github.com/ynput/OpenPype/pull/5936
This commit is contained in:
parent
835f50e57c
commit
24abe0e0f3
1 changed files with 5 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
hosts = ["shell", "fusion", "resolve", "traypublisher", "substancepainter"]
|
||||
enabled = False
|
||||
|
||||
publishing_thumbnail = False
|
||||
integrate_thumbnail = False
|
||||
target_size = {
|
||||
"type": "resize",
|
||||
"width": 1920,
|
||||
|
|
@ -155,7 +155,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
new_repre_tags = ["thumbnail"]
|
||||
# for workflows which needs to have thumbnails published as
|
||||
# separate representations `delete` tag should not be added
|
||||
if not self.publishing_thumbnail:
|
||||
if not self.integrate_thumbnail:
|
||||
new_repre_tags.append("delete")
|
||||
|
||||
new_repre = {
|
||||
|
|
@ -320,7 +320,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
def _get_resolution_arg(self, application):
|
||||
# get settings
|
||||
if self.target_size.get("type") == "source":
|
||||
return
|
||||
return []
|
||||
|
||||
width = self.target_size["width"]
|
||||
height = self.target_size["height"]
|
||||
|
|
@ -329,3 +329,5 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
return ["-vf", "scale={0}:{1}".format(width, height)]
|
||||
elif application == "oiiotool":
|
||||
return ["-resize", "{0}x{1}".format(width, height)]
|
||||
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue