mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
check if there is thumbnail source in the instance.data
This commit is contained in:
parent
dbd27983e4
commit
a4335f7f4b
2 changed files with 7 additions and 5 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import os
|
||||
import pyblish.api
|
||||
from ayon_core.pipeline import publish
|
||||
from ayon_max.api.preview_animation import render_preview_animation
|
||||
|
||||
|
|
@ -8,12 +7,15 @@ class ExtractThumbnail(publish.Extractor):
|
|||
"""Extract Thumbnail for Review
|
||||
"""
|
||||
|
||||
order = pyblish.api.ExtractorOrder - 0.45
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import glob
|
|||
import os
|
||||
import tempfile
|
||||
|
||||
import pyblish.api
|
||||
from ayon_maya.api import lib
|
||||
from ayon_maya.api import plugin
|
||||
|
||||
|
|
@ -14,13 +13,14 @@ class ExtractThumbnail(plugin.MayaExtractorPlugin):
|
|||
capture.
|
||||
|
||||
"""
|
||||
order = pyblish.api.ExtractorOrder - 0.45
|
||||
label = "Thumbnail"
|
||||
families = ["review"]
|
||||
|
||||
def process(self, instance):
|
||||
self.log.debug("Extracting thumbnail..")
|
||||
|
||||
if instance.data.get("thumbnailSource"):
|
||||
self.log.debug("Thumbnail source found, skipping...")
|
||||
return
|
||||
camera = instance.data["review_camera"]
|
||||
|
||||
task_data = instance.data["anatomyData"].get("task", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue