-
Call the value of a prop. at time of another prop. keyframe
Hi everyone! New to the forum. Let see if I can explain myself in order to get some helpfull hint!
I want to automate the animation for a lower third box looking at the width of the text layer above.
I have the rectangle width linked to the width of the text layer (that has a typewritting effect driven by a slider). I need to add extra margin to de width of the box. So in order to get a proper animation for the box I would love to use a linear expression to start from 0 (ignoring the margin and the default text width given by the blinking cursor) to the defined width by the text layer plus the margin.
I think my problem is that the text layer width doesnt have keyframes and I dont want to use a specific time. So, is anyway of referencing the value of a prop. at the time of another prop. keyframe? Is this too tangled and I am missing a much easier approach? Thanks in advance!
This is my incomplete expression for the rectangle size:
t = thisComp.layer(index-1); // txt layer above
w = t.sourceRectAtTime().width;
m = effect(“Slider Control”)(1); // flexible extra margin
an = w + m;
x = linear(an, ?, ?, 0, an); // no clue of what I am doing here 🙁
[x, value[1]]
Best,
Diego