Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Clone perfectly a text layer with another one using expression

  • Clone perfectly a text layer with another one using expression

    Posted by Julien Des on August 21, 2023 at 12:09 pm

    For some reason, I don’t wan’t to precompose a text layer and then use it in a bunch of other comps. This is the other way round.

    The idea, is that I have to link a text layer to another so that it is exactly the same : all attributes, must be the same.

    The main reason, is that I have a final composition with lot’s of elements such as sliders, color picker (…) : these choices affects a bunch of layers that are visible in this “big” final composition. So I don’t want to open a precomp with a text bloc : it has to be as simple as this. I have tried many expressions, but most of these are based upon a specific character in the source bloc.

    Thanks a lot for the help, if that is possible of course.

    Julien Des replied 3 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 21, 2023 at 6:43 pm

    It won’t work if you have multiple, per-character, styles defined in your master text layer (multiple fonts, for example). If not, something like this source text expression should work:

    txt = comp("Main").layer("Master Text").text.sourceText;
    txt.style.setText(txt)
  • Julien Des

    August 23, 2023 at 11:55 am

    Hello Dan and thanks for your answer. I was afraid that it was impossible. I really need to have the same text bloc including any change on a per-character basis. I saw somewhere that I could point at one character, but nothing about the entire content.

    Would it be possible to create a loop for the number of characters in a bloc ? I know it might slow down AEFX, or maybe limit the expression calculation to 1 frame ?

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