-
interpolating from source text keyframe to the next
Hi
I am trying to make source.rectAtTime to work in interpolating text changes in the same layer.
I got it to work with 2 separate layers but I need it to work for one.
Hi. so I got this to work for 2 text layers: https://imgur.com/a/i976B
I am trying to make this work for one text layer using source text keyframes. is that possible?here’s a preview of the animation I am trying to make. first the rectangle stretches, then the animators kick in.
this is what I enter in scale for the shape
T= thisComp.layer(“text_1”);
T2=thisComp.layer(“text_2”);trans = effect(“transition”)(“Slider”);
x1 = T.sourceRectAtTime(time-inPoint).width+18;
x2 = T2.sourceRectAtTime(time-inPoint).width+18;x = linear(trans,0,100,x1,x2);
[x,26]this is what I enter for the animation which is triggered by a marker in another layer
preroll = 0;
L= thisComp.layer(“Controller”);
n = 0;
t0 = time + preroll;
if (L.marker.numKeys > 0){
n = L.marker.nearestKey(t0).index;
if (L.marker.key(n).time > t0) n–;
}
if (n < 2){
t = 0;
}else{
t = t0 – L.marker.key(n).time;
}
valueAtTime(t)but I am trying to make this happen with only one layer because this is a template and if someone needs more text he can add them, if not then no need. so I can’t have multiple text layers in there.
Roei Tzoref
2D/VFX Generalist & Instructor
♫ AeBlues Tutorials ♫
http://www.tzoref.com