Copy link to clipboard
Copied
Hi,
Im fairly new to After Effects but i somehwhat know my way around it and have used expressions before to create dropdown menus in mogrts etc.
I'm creating a mogrt for an editor and i have a lower third animating in, it is controlled by 'position' keyframes. However, the length of the lower third will be adjusted depending on the amount of text in the box. So ideally, i would need the 2nd keyframe to be editable in length (it also needs to be capped at a specific max length so it doesnt affect the safe zone of the comp). I need this 2nd keyframe to hold for a duration of roughly 6 seconds until it animates out.
I think this can be done using the slider control and perhaps a null layer?
I would appreciate if someone could help and provide clear instructions as im fairly new to mogrts and expressions.
My layers below:
Copy link to clipboard
Copied
Hey there!
There's an awesome feature made to do exactly what you want, and it's called "Responsive Design - Time." You can read more about it here: https://helpx.adobe.com/after-effects/using/responsive-design.html#:~:text=Protected%20regions%20are....
The idea is that you create a single marker and expand the time (so get rid of the markers over those second keyframes and hold alt/opt while dragging to extend the range on the first marker). You then double-click this marker and check the "Protected Region" box. Do the same over your out animation keys so you have two protected regions. When you make this a MOGRT that center part will extend indefinitely and the beginning and end of your MOGRT will always correspond with the beginning and end of your AE comp!
Copy link to clipboard
Copied
this can be done. i have a project that uses this method.
you need an in position null, and an out position null. the inposition can be fixed for your purposes, and the out position would have the position that is controlled by the length of your text for example. then you would create a slider to determine the animation curve. then you need a position control with this expression to force it to do what you want ( in your case you would have 4 key frames on the control slider layer;
d = thisComp.layer("Control").effect("Slider Control")("Slider") ;
xinposition = thisComp.layer("out").transform.position[0];
yinposition = thisComp.layer('out').transform.position[1];
xoutposition = thisComp.layer('IN').transform.position[0];
youtposition = thisComp.layer('IN').transform.position[1];
x = linear(d, xinposition, xoutposition);
y = linear(d, yinposition, youtposition);
[x,y]
PM me if you need help
Copy link to clipboard
Copied
Same post twice. I've answered on the other one: