mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix(hiero): trimming review with clip event number
This commit is contained in:
parent
5f90dea9e5
commit
34b568304e
1 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,8 @@ class ExtractReviewCutUp(pype.api.Extractor):
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
inst_data = instance.data
|
inst_data = instance.data
|
||||||
asset = inst_data['asset']
|
asset = inst_data['asset']
|
||||||
|
item = inst_data['item']
|
||||||
|
event_number = int(item.eventNumber())
|
||||||
|
|
||||||
# get representation and loop them
|
# get representation and loop them
|
||||||
representations = inst_data["representations"]
|
representations = inst_data["representations"]
|
||||||
|
|
@ -97,7 +99,7 @@ class ExtractReviewCutUp(pype.api.Extractor):
|
||||||
index = 0
|
index = 0
|
||||||
for image in collection:
|
for image in collection:
|
||||||
dst_file_num = frame_start + index
|
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)
|
src = os.path.join(staging_dir, image)
|
||||||
dst = os.path.join(full_output_dir, dst_file_name)
|
dst = os.path.join(full_output_dir, dst_file_name)
|
||||||
self.log.info("Creating temp hardlinks: {}".format(dst))
|
self.log.info("Creating temp hardlinks: {}".format(dst))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue