-
Adjustable start point of lower third animation
Hi!
I’m working for almost three years now in video editing and occasionally motion graphics, but am still fairly new to expressions in After Effects.
We made a lower third for a client, but now I would like to transform this After Effects file to an Essential Graphic, so I don’t need to open After Effects each time this client orders a new video. It’s going pretty well, however I came across one problem I can’t seem to tackle
.
You can see the lower thirds in action here: https://i.imgur.com/c3cvGbz.gifThe text box resizes as it should and the end point of the animation is also fixed, however I would like to be able to change the startpoint of the animation accordingly to the width of the textbox.
As you can see in my example, if the text becomes too long, the shape layer is already visible before the start of the animation.
Is it possible to change the starting point of my animation to match the width of the text boxes and still keep the endpoint fixed?
P.S.: I’m not a native English speaker, so my apologies for possible wrong usage of technical terms. 😉
I control the animation with a slider control and this expression on the X position of the text box:
thisComp.layer("Null 3").effect("Position")("Slider")Not really necessary for my question but for the text boxes I used the following (there are probably better ways):
On size:
s=thisComp.layer("Naam");
x=s.sourceRectAtTime(time-s.inPoint,true).width;
y=180;
[x+100,y]On position:
content("Rectangle 1").content("Rectangle Path 1").size/2