mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #502 from tokejepsen/2.x/bugfix/nuke_skip_thumbnail_submission
Nuke: skip thumbnail creation on farm submission.
This commit is contained in:
commit
67151066ae
2 changed files with 8 additions and 1 deletions
|
|
@ -81,6 +81,11 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
|
||||||
jpeg_items.append("-i {}".format(full_input_path))
|
jpeg_items.append("-i {}".format(full_input_path))
|
||||||
# output arguments from presets
|
# output arguments from presets
|
||||||
jpeg_items.extend(ffmpeg_args.get("output") or [])
|
jpeg_items.extend(ffmpeg_args.get("output") or [])
|
||||||
|
|
||||||
|
# If its a movie file, we just want one frame.
|
||||||
|
if repre["ext"] == "mov":
|
||||||
|
jpeg_items.append("-vframes 1")
|
||||||
|
|
||||||
# output file
|
# output file
|
||||||
jpeg_items.append(full_output_path)
|
jpeg_items.append(full_output_path)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,12 @@ class ExtractThumbnail(pype.api.Extractor):
|
||||||
order = pyblish.api.ExtractorOrder + 0.01
|
order = pyblish.api.ExtractorOrder + 0.01
|
||||||
label = "Extract Thumbnail"
|
label = "Extract Thumbnail"
|
||||||
|
|
||||||
families = ["review", "render.farm"]
|
families = ["review"]
|
||||||
hosts = ["nuke"]
|
hosts = ["nuke"]
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
|
if "render.farm" in instance.data["families"]:
|
||||||
|
return
|
||||||
|
|
||||||
with anlib.maintained_selection():
|
with anlib.maintained_selection():
|
||||||
self.log.debug("instance: {}".format(instance))
|
self.log.debug("instance: {}".format(instance))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue