Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change source text like source text of specific text-layer

  • Change source text like source text of specific text-layer

    Posted by Peter Bursch on April 29, 2015 at 11:46 pm

    Hi,
    i have a composition with 3 text-layers, where one layer overlay the other and every layer has other color. Is it possible that the source text of these 3 text-layers will change dynamically.

    I mean i add another text-layer in the parent composition and add in one minute gaps a keyframe where the source text change.

    So when the marker reach the keyframe and the source text of the specific text-layer change, the source text of the 3 text-layers will change too.

    Something like that:

    text = comp("parent comp").layer("specific text-layer").text.sourceText;

    for i=1 to text.numKeys
    if nearestKey(i) then text = text.keyValue(i)

    Peter Diefenthaler replied 10 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Peter Diefenthaler

    June 8, 2015 at 5:08 am

    You only need to put the first part of your expression in the Source Text property of the three text layers you want linked to the main text layer.

    comp("parent comp").layer("specific text-layer").text.sourceText

    It might be better to precompose the text and then apply your effects to the precomposed layers. That way you can format the text in one place more easily, since linking the source text doesn’t copy text attributes like tracking, font or font size,etc.

    Peter Diefenthaler
    https://www.ideafirecreative.com/

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