fix(hiero): trimming review with clip event number

This commit is contained in:
Jakub Jezek 2020-11-26 18:20:26 +01:00
parent 5f90dea9e5
commit 34b568304e
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -23,6 +23,8 @@ class ExtractReviewCutUp(pype.api.Extractor):
def process(self, instance):
inst_data = instance.data
asset = inst_data['asset']
item = inst_data['item']
event_number = int(item.eventNumber())
# get representation and loop them
representations = inst_data["representations"]
@ -97,7 +99,7 @@ class ExtractReviewCutUp(pype.api.Extractor):
index = 0
for image in collection:
dst_file_num = frame_start + index
dst_file_name = head + str(padding % dst_file_num) + tail
dst_file_name = str(event_number) + head + str(padding % dst_file_num) + tail
src = os.path.join(staging_dir, image)
dst = os.path.join(full_output_dir, dst_file_name)
self.log.info("Creating temp hardlinks: {}".format(dst))