mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Hiero: one frame diff fix, with code improvements
This commit is contained in:
parent
b55bf81d35
commit
68439301dc
1 changed files with 3 additions and 3 deletions
|
|
@ -295,9 +295,9 @@ class PrecollectInstances(pyblish.api.ContextPlugin):
|
||||||
for otio_clip in self.otio_timeline.each_clip():
|
for otio_clip in self.otio_timeline.each_clip():
|
||||||
track_name = otio_clip.parent().name
|
track_name = otio_clip.parent().name
|
||||||
parent_range = otio_clip.range_in_parent()
|
parent_range = otio_clip.range_in_parent()
|
||||||
if ti_track_name not in track_name:
|
if ti_track_name != track_name:
|
||||||
continue
|
continue
|
||||||
if otio_clip.name not in track_item.name():
|
if otio_clip.name != track_item.name():
|
||||||
continue
|
continue
|
||||||
self.log.debug("__ parent_range: {}".format(parent_range))
|
self.log.debug("__ parent_range: {}".format(parent_range))
|
||||||
self.log.debug("__ timeline_range: {}".format(timeline_range))
|
self.log.debug("__ timeline_range: {}".format(timeline_range))
|
||||||
|
|
@ -317,7 +317,7 @@ class PrecollectInstances(pyblish.api.ContextPlugin):
|
||||||
speed = track_item.playbackSpeed()
|
speed = track_item.playbackSpeed()
|
||||||
timeline = phiero.get_current_sequence()
|
timeline = phiero.get_current_sequence()
|
||||||
frame_start = int(track_item.timelineIn())
|
frame_start = int(track_item.timelineIn())
|
||||||
frame_duration = int(track_item.sourceDuration() / speed)
|
frame_duration = int((track_item.duration() - 1) / speed)
|
||||||
fps = timeline.framerate().toFloat()
|
fps = timeline.framerate().toFloat()
|
||||||
|
|
||||||
return hiero_export.create_otio_time_range(
|
return hiero_export.create_otio_time_range(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue