ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

lower thirds for premiere using sourceRectAtTime

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shahar Bareket
lower thirds for premiere using sourceRectAtTime
on Jun 14, 2017 at 4:58:13 pm

Hi Guys!
Im trying to create a lower third to be used as a template in premiere and i want it to be as foolproof as possible.

We work in RTL here (right to left)
I want the text to slide from the right behind a mask and reveal. thats pretty straight forward with keyframes,
the problem is, i want it to always hit the same start and end points no matter what the width of the text layer is!

I can do the math, i just don't know how to write as an expression to the position..

I tried it with markers and i guess it works.. (i think it has errors on it though it did worked at some point)
I just want it to have ease in the timing, and im sure im missing something huge in here and theres a much more elegant way of doing this..

Any help will be appreciated!!

n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
if (n > 0) {t = time - marker.key(n).time;

if (n == 0){
} else {
if n == 1 {"Position").setValue([1920+r.width,900]);}
if n == 2 {"Position").setValue([1700-r.width,900]);}
if n == 3 {"Position").setValue([1700-r.width,900]);}
if n == 4 {"Position").setValue([1920+r.width,900]);}

Return to posts index

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