Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions getting an expression from a text layer (source text)…?

  • getting an expression from a text layer (source text)…?

    Posted by Erin Shelby on January 11, 2007 at 11:38 am

    I was wondering if I wrote an expression in a text layer (the source text, that is), if I could make another layer use the string within it? I tried through the pick whip but that didn’t work.

    For example let’s just say the text layer source text string is:
    [10,10];

    then on another layer I want the position property expression to use the source text string…what would that expression be? TIA.

    -E

    Erin Shelby replied 19 years, 4 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    January 11, 2007 at 3:20 pm

    The code is going to depend a lot on the format of the text, but for your example something like this should do the trick:

    eval(“s=” + thisComp.layer(“Text Layer”).text.sourceText);

    Dan

  • Mylenium

    January 11, 2007 at 4:08 pm

    In case you want to use your numbers in calculations, you may also want to use parseInt() and parseFloat().

    Mylenium

    [Pour Myl

  • Erin Shelby

    January 20, 2007 at 5:21 pm

    wow thanks, that helped me quite a bit…if I could up the complexity, would there be a way so I could make different expressions grab from different lines of the source text? Or is that just too complex?

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