fix(standalonepublish): getting frameStart and frameEnd from representaions

This commit is contained in:
Jakub Jezek 2019-10-07 12:32:35 +02:00
parent 182f5d7970
commit 97673d503c
2 changed files with 5 additions and 3 deletions

View file

@ -66,6 +66,8 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
"label": subset,
"name": subset,
"family": family,
"frameStart": in_data.get("representations", [None])[0].get("frameStart", None),
"frameEnd": in_data.get("representations", [None])[0].get("frameEnd", None),
"families": [family, 'ftrack'],
})
self.log.info("collected instance: {}".format(instance.data))

View file

@ -119,8 +119,8 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
"tags": []
}
# add Delete tag when temp file was rendered
if not is_jpeg:
representation["tags"].append("delete")
# # add Delete tag when temp file was rendered
# if not is_jpeg:
# representation["tags"].append("delete")
instance.data["representations"].append(representation)