Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Connect multiple text layers with one script

  • Connect multiple text layers with one script

    Posted by Dmitriy Khomyakov on February 9, 2019 at 8:14 pm

    Hello to all. I connected the three lower layers with the first. When you change the text in the first layer, then the tex changes in all three layers (Source Text), but I am faced with a problem. When changing the font size in the first layer, in the remaining layers the font size does not change. Help make sure that by changing the size of the text in the first layer, it is automatically changed in the rest.
    ————————————————————————————————————–
    Привет всем. Я связал три нижних слоя с первым. Когда изменяешь текст в первом слое, то текс меняется во всех трех слоях (Source Text), но я столкнуля с проблемой. При изминение размера шрифта в первом слое, в остальных слоях размер шрифта не меняется. Помогите сделать так, что бы изменяя размер текста в первом слое, он автоматически изменялся в остальных.

    thisComp.layer("JOB").text.sourceText

    Dmitriy Khomyakov replied 7 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 9, 2019 at 8:25 pm

    You can’t control font size with an expression, but you might be able to come close with a scale expression like this:

    r = thisComp.layer(“JOB”).sourceRectAtTime(time,false);
    r2 = sourceRectAtTime(time,false);
    s = (r.width/r2.width)*100;
    [s,s]

    Dan

  • Dmitriy Khomyakov

    February 9, 2019 at 8:40 pm

    Does not work

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy