global: adding review family to filters with non trayp exception

This commit is contained in:
Jakub Jezek 2022-07-21 09:24:28 +02:00
parent 9787947573
commit 0ea71b05fb
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -20,7 +20,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
order = pyblish.api.ExtractorOrder
families = [
"imagesequence", "render", "render2d", "prerender",
"source", "plate", "take"
"source", "plate", "take", "review"
]
hosts = ["shell", "fusion", "resolve", "traypublisher"]
enabled = False
@ -29,6 +29,14 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
ffmpeg_args = None
def process(self, instance):
# make sure this apply only to reveiw in both family keys
# HACK: only traypublisher review family is allowed
if (
instance.data["family"] != "review"
and "review" in instance.data["families"]
):
return
self.log.info("subset {}".format(instance.data['subset']))
# skip crypto passes.