Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Make sure implicit thumbnail in higher priority over the thumbnail source #695

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ class ExtractThumbnail(publish.Extractor):
"""Extract Thumbnail for Review
"""

order = pyblish.api.ExtractorOrder
order = pyblish.api.ExtractorOrder - 0.3
label = "Extract Thumbnail"
hosts = ["max"]
families = ["review"]

def process(self, instance):
if instance.data.get("thumbnailSource"):
self.log.debug("Thumbnail source found, skipping...")
return

ext = instance.data.get("imageFormat")
frame = int(instance.data["frameStart"])
staging_dir = self.staging_dir(instance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import tempfile

import pyblish.api
from ayon_maya.api import lib
from ayon_maya.api import plugin

Expand All @@ -13,7 +14,7 @@ class ExtractThumbnail(plugin.MayaExtractorPlugin):
capture.

"""

order = pyblish.api.ExtractorOrder - 0.3
label = "Thumbnail"
families = ["review"]

Expand Down
Loading