improving variable name

This commit is contained in:
Jakub Jezek 2022-09-07 16:02:38 +02:00
parent 57aa1e6659
commit d2b3c80fb9
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -29,7 +29,7 @@ class CollectOtioFrameRanges(pyblish.api.InstancePlugin):
# get basic variables
otio_clip = instance.data["otioClip"]
workfile_start = instance.data["workfileFrameStart"]
not_retime_framerange = instance.data.get("notRetimedFramerange")
workfile_source_duration = instance.data.get("notRetimedFramerange")
# get ranges
otio_tl_range = otio_clip.range_in_parent()
@ -56,7 +56,7 @@ class CollectOtioFrameRanges(pyblish.api.InstancePlugin):
otio_tl_range.duration, otio_tl_range.duration.rate) - 1
# in case of retimed clip and frame range should not be retimed
if not_retime_framerange:
if workfile_source_duration:
frame_end = frame_start + otio.opentime.to_frames(
otio_src_range.duration, otio_src_range.duration.rate) - 1