add frames to published representations

This commit is contained in:
Jana Mizikova 2019-10-30 19:06:18 +01:00
parent 3898158144
commit dbe79c7741
2 changed files with 8 additions and 1 deletions

View file

@ -305,6 +305,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
dst_tail = dst_collection.format("{tail}")
index_frame_start = None
if repre.get("frameStart"):
frame_start_padding = len(str(
repre.get("frameEnd")))
@ -391,6 +392,10 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
"representation": repre['ext']
}
}
if frame_start_padding:
representation['context']['frame'] = repre.get("frameStart")
self.log.debug("__ representation: {}".format(representation))
destination_list.append(dst)
self.log.debug("__ destination_list: {}".format(destination_list))

View file

@ -73,7 +73,9 @@ class ExtractYetiCache(pype.api.Extractor):
'ext': 'fur',
'files': cache_files[0] if len(cache_files) == 1 else cache_files,
'stagingDir': dirname,
'anatomy_template': 'publish'
'anatomy_template': 'publish',
'frameStart': int(start_frame),
'frameEnd': int(end_frame)
}
)