mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Hiero: select only clip related time effect
- also fix duration to be untouched by retimes
This commit is contained in:
parent
5ec54c9cb8
commit
09b8cd5b40
1 changed files with 8 additions and 2 deletions
|
|
@ -88,6 +88,9 @@ def create_time_effects(otio_clip, track_item):
|
|||
|
||||
# loop trought and get all Timewarps
|
||||
for effect in subTrackItems:
|
||||
if ((track_item not in effect.linkedItems())
|
||||
and (len(effect.linkedItems()) > 0)):
|
||||
continue
|
||||
# avoid all effect which are not TimeWarp and disabled
|
||||
if "TimeWarp" not in effect.name():
|
||||
continue
|
||||
|
|
@ -264,9 +267,12 @@ def create_otio_markers(otio_item, item):
|
|||
|
||||
def create_otio_clip(track_item):
|
||||
clip = track_item.source()
|
||||
source_in = track_item.sourceIn()
|
||||
speed = track_item.playbackSpeed()
|
||||
duration = int(track_item.sourceDuration() / speed)
|
||||
# flip if speed is in minus
|
||||
source_in = track_item.sourceIn() if speed > 0 else track_item.sourceOut()
|
||||
|
||||
duration = int(track_item.duration())
|
||||
|
||||
fps = utils.get_rate(track_item) or self.project_fps
|
||||
name = track_item.name()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue