-
Dynamic text with divider
Hello,
Few years ago Dan Ebberts helped with a dynamic text problem I had and it worked perfectly. You type the text and it moves with the divider the the second text.
I cannot figure a way to solve the same issue but being left justified for the two line option.It works only with center justified.
If Anyone can point me to a solution, I’ll be very grateful.
/Divider
margin = 50;
w1 = thisComp.layer("text 1").sourceRectAtTime(time,false).width;
xb = thisComp.layer("bar").position[0];
x = xb + margin*2 + w1 + width/2;
[x, value[1]]//Text1
margin = 50;
w1 = sourceRectAtTime(time,false).width;
xb = thisComp.layer("bar").position[0];
x = xb + margin + w1/2;
[x,value[1]]//Text2
margin = 50;
w1 = thisComp.layer("text 1").sourceRectAtTime(time,false).width;
w2 = sourceRectAtTime(time,false).width;
d = thisComp.layer("divider").width;
xb = thisComp.layer("bar").position[0];
x = xb + margin*3 + d + w1 + w2/2;
[x,value[1]]

