mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use the frame range from context data if it cannot find one
This commit is contained in:
parent
2fe89c4b46
commit
cfed4afaaf
1 changed files with 10 additions and 4 deletions
|
|
@ -572,7 +572,9 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
# review output files
|
||||
"timecode": frame_to_timecode(
|
||||
frame=temp_data.frame_start_handle,
|
||||
fps=float(instance.data.get("fps", 25.0))
|
||||
fps=float(instance.data.get(
|
||||
"fps", instance.context.data["fps"]
|
||||
))
|
||||
)
|
||||
})
|
||||
|
||||
|
|
@ -665,8 +667,12 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
with values may be added.
|
||||
"""
|
||||
|
||||
frame_start = instance.data.get("frameStart", 1)
|
||||
frame_end = instance.data.get("frameEnd", 1)
|
||||
frame_start = instance.data.get(
|
||||
"frameStart", instance.context.data["frameStart"]
|
||||
)
|
||||
frame_end = instance.data.get(
|
||||
"frameEnd", instance.context.data["frameEnd"]
|
||||
)
|
||||
|
||||
# Try to get handles from instance
|
||||
handle_start = instance.data.get("handleStart")
|
||||
|
|
@ -726,7 +732,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
ext = os.path.splitext(repre["files"])[1].replace(".", "")
|
||||
|
||||
return TempData(
|
||||
fps=float(instance.data.get("fps", 25.0)),
|
||||
fps=float(instance.data.get("fps", instance.context.data["fps"])),
|
||||
frame_start=frame_start,
|
||||
frame_end=frame_end,
|
||||
handle_start=handle_start,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue