mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
tweak on the preset.pop
This commit is contained in:
parent
69c45c517f
commit
899bf86046
2 changed files with 6 additions and 3 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import os
|
||||
import pyblish.api
|
||||
from openpype.pipeline import publish
|
||||
from openpype.pipeline import publish, OptionalPyblishPluginMixin
|
||||
from openpype.hosts.max.api.preview_animation import render_preview_animation
|
||||
|
||||
|
||||
class ExtractThumbnail(publish.Extractor):
|
||||
class ExtractThumbnail(publish.Extractor, OptionalPyblishPluginMixin):
|
||||
"""Extract Thumbnail for Review
|
||||
"""
|
||||
|
||||
|
|
@ -12,8 +12,11 @@ class ExtractThumbnail(publish.Extractor):
|
|||
label = "Extract Thumbnail"
|
||||
hosts = ["max"]
|
||||
families = ["review"]
|
||||
optional = True
|
||||
|
||||
def process(self, instance):
|
||||
if not self.is_active(instance.data):
|
||||
return
|
||||
ext = instance.data.get("imageFormat")
|
||||
frame = int(instance.data["frameStart"])
|
||||
staging_dir = self.staging_dir(instance)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class ExtractPlayblast(publish.Extractor):
|
|||
and preset["viewport_options"].get("textures")
|
||||
):
|
||||
lib.reload_textures()
|
||||
preset.pop("reloadTextures") # not supported by `capture`
|
||||
preset.pop("reloadTextures", None) # not supported by `capture`
|
||||
path = capture.capture(log=self.log, **preset)
|
||||
self.log.debug("playblast path {}".format(path))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue