-
lower thirds for premiere using sourceRectAtTime
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!!
Thanks!s=thisLayer
r=s.sourceRectAtTime(time-s.inPoint,true);
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
if (n > 0) {t = time - marker.key(n).time;if (n == 0){
value;
} else {
if n == 1 {s.property("Position").setValue([1920+r.width,900]);}
if n == 2 {s.property("Position").setValue([1700-r.width,900]);}
if n == 3 {s.property("Position").setValue([1700-r.width,900]);}
if n == 4 {s.property("Position").setValue([1920+r.width,900]);}
}
Sorry, there were no replies found.
