mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #2056 from pypeclub/bugfix/PYPE-1042_OpenPype3---offline-jpeg-sequences
Differentiate jpg sequences from thumbnail
This commit is contained in:
commit
993b1dfe55
2 changed files with 4 additions and 1 deletions
|
|
@ -76,6 +76,8 @@ class LoadSequence(api.Loader):
|
|||
file = file.replace("\\", "/")
|
||||
|
||||
repr_cont = context["representation"]["context"]
|
||||
assert repr_cont.get("frame"), "Representation is not sequence"
|
||||
|
||||
if "#" not in file:
|
||||
frame = repr_cont.get("frame")
|
||||
if frame:
|
||||
|
|
@ -170,6 +172,7 @@ class LoadSequence(api.Loader):
|
|||
assert read_node.Class() == "Read", "Must be Read"
|
||||
|
||||
repr_cont = representation["context"]
|
||||
assert repr_cont.get("frame"), "Representation is not sequence"
|
||||
|
||||
file = api.get_representation_path(representation)
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ class ExtractThumbnailSP(pyblish.api.InstancePlugin):
|
|||
|
||||
# create new thumbnail representation
|
||||
representation = {
|
||||
'name': 'jpg',
|
||||
'name': 'thumbnail',
|
||||
'ext': 'jpg',
|
||||
'files': filename,
|
||||
"stagingDir": staging_dir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue