FORUMS: list search recent posts

Expression to loop out layer with 2 markers

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Aimee Murray
Expression to loop out layer with 2 markers
on Feb 16, 2016 at 12:23:45 pm

Is there a way to loop out a section of a layer, with the option to pingpong or cycle, using markers?
The first marker ("Loop Start") would be the start of the loop, and the second marker ("Loop End") would be the end of the loop.

Return to posts index

Walter Soyka
Re: Expression to loop out layer with 2 markers
on Feb 16, 2016 at 7:22:16 pm

It's probably easiest to split the layer at the loop beginning, remove extraneous keyframes before then, and then use your loopOut expression.

There's a little-known option with loopOut() to specific the number of keyframes back from the last one to use for the loop. There's another variation on loopOut called loopOutDuration() that allows you to specific the time back from the last keyframe for the looping section. Both of these are covered in the expression language reference [link].

It would be possible to write an expression that does what you describe, but you'd have to re-write the loopOut functionality from scratch, using valueAtTime().

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved