mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'hotfix/audio_file_existence_check' into develop
This commit is contained in:
commit
1f5166aa5f
1 changed files with 4 additions and 2 deletions
|
|
@ -45,8 +45,7 @@ class ExtractRender(pyblish.api.InstancePlugin):
|
||||||
frame_start = result[4]
|
frame_start = result[4]
|
||||||
frame_end = result[5]
|
frame_end = result[5]
|
||||||
audio_path = result[6]
|
audio_path = result[6]
|
||||||
if audio_path:
|
|
||||||
instance.data["audio"] = [{"filename": audio_path}]
|
|
||||||
instance.data["fps"] = frame_rate
|
instance.data["fps"] = frame_rate
|
||||||
|
|
||||||
# Set output path to temp folder.
|
# Set output path to temp folder.
|
||||||
|
|
@ -139,6 +138,9 @@ class ExtractRender(pyblish.api.InstancePlugin):
|
||||||
}
|
}
|
||||||
instance.data["representations"] = [representation, thumbnail]
|
instance.data["representations"] = [representation, thumbnail]
|
||||||
|
|
||||||
|
if audio_path and os.path.exists(audio_path):
|
||||||
|
instance.data["audio"] = [{"filename": audio_path}]
|
||||||
|
|
||||||
# Required for extract_review plugin (L222 onwards).
|
# Required for extract_review plugin (L222 onwards).
|
||||||
instance.data["frameStart"] = frame_start
|
instance.data["frameStart"] = frame_start
|
||||||
instance.data["frameEnd"] = frame_end
|
instance.data["frameEnd"] = frame_end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue