global: using middle frame for thumbnail

enabling for resolve and plate and take family
This commit is contained in:
Jakub Jezek 2020-12-29 16:18:56 +01:00
parent 36a228b299
commit 47ce7b0703
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -12,9 +12,12 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
"""Create jpg thumbnail from sequence using ffmpeg"""
label = "Extract Jpeg EXR"
hosts = ["shell", "fusion"]
order = pyblish.api.ExtractorOrder
families = ["imagesequence", "render", "render2d", "source"]
families = [
"imagesequence", "render", "render2d",
"source", "plate", "take"
]
hosts = ["shell", "fusion", "resolve"]
enabled = False
# presetable attribute
@ -50,7 +53,8 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
if not isinstance(repre['files'], (list, tuple)):
input_file = repre['files']
else:
input_file = repre['files'][0]
file_index = int(float(len(repre['files'])) * 0.5)
input_file = repre['files'][file_index]
stagingdir = os.path.normpath(repre.get("stagingDir"))