Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
global: extract review output name to anatomy fill data
Browse files Browse the repository at this point in the history
allow to use it in ffmpeg args for metadata
  • Loading branch information
jakubjezek001 committed Jan 17, 2022
1 parent eed31e5 commit 7e25f22
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions openpype/plugins/publish/extract_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,21 @@ def main_process(self, instance):
temp_data["frame_start"],
temp_data["frame_end"])

# create or update outputName
output_name = new_repre.get("outputName", "")
output_ext = new_repre["ext"]
if output_name:
output_name += "_"
output_name += output_def["filename_suffix"]
if temp_data["without_handles"]:
output_name += "_noHandles"

# add outputName to anatomy format fill_data
fill_data.update({
"output": output_name,
"ext": output_ext
})

try: # temporary until oiiotool is supported cross platform
ffmpeg_args = self._ffmpeg_arguments(
output_def, instance, new_repre, temp_data, fill_data
Expand All @@ -317,14 +332,6 @@ def main_process(self, instance):
for f in files_to_clean:
os.unlink(f)

output_name = new_repre.get("outputName", "")
output_ext = new_repre["ext"]
if output_name:
output_name += "_"
output_name += output_def["filename_suffix"]
if temp_data["without_handles"]:
output_name += "_noHandles"

new_repre.update({
"name": "{}_{}".format(output_name, output_ext),
"outputName": output_name,
Expand Down

0 comments on commit 7e25f22

Please sign in to comment.