Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Use Source Text as expression

  • Use Source Text as expression

  • Remi Monedi

    April 8, 2020 at 2:25 pm

    Hi everyone,

    I have a text layer with a slider. In the source Text, I wrote “wiggle(5,50)” (without the quotation mark).
    I’d like the Slider property to use this text as an expression. How? I’ve searched the internet for 1 hour and I can’t find an answer!

    The code below obviously doesn’t work. AE understands it as a Text value, not a property or expression.

    Have a nice day!

    thisLayer.text.sourceText;

  • Dan Ebberts

    April 8, 2020 at 9:45 pm

    Try it this way:

    eval(text.sourceText)

    Dan

  • Remi Monedi

    April 9, 2020 at 7:16 am

    Hi Dan,

    On AE CC2017 it is not working, same error message.

  • Tomas Bumbulevičius

    April 9, 2020 at 11:11 am

    Remi, as a workaround, you could instead define a wiggle in the slider, and just control numeric values by assigning other slider values (for speed and influence).

    I tried Dan’s example in CC2019 and it also does not work though.

    Find out more:
    Motion Graphics Design & After Effects Tutorials
    On YT
    On VH

  • Remi Monedi

    April 9, 2020 at 1:17 pm

    Thank you for the workaround Tomas but I am trying to create a project to test expression calculation speed and your solution won’t work :
    I wanted to have a text layer where I can write the expression I want to test and then have the properties of 50 layers linked to this Source text. This way I could easily change/improve the expression on just a single text layer and see how it affects the preview time on a lot of layers.
    This is the easiest setup I came up with but maybe it’s not possible to convert text values into property.

  • Tomas Bumbulevičius

    April 9, 2020 at 2:35 pm

    Would love to see the results if you come up to a solution! In the meanwhile, if some idea pops into my head I will let you know. Are you using CC2017 only or higher versions are applicable too?

    Find out more:
    Motion Graphics Design & After Effects Tutorials
    On YT
    On VH

  • Dan Ebberts

    April 9, 2020 at 4:52 pm

    Ah, OK–slight change:

    eval(text.sourceText.value)

    Dan

  • Remi Monedi

    April 10, 2020 at 8:56 am

    If the results are conclusive I will share the project file Tomas, I’ll let you know! For now I’m working on AE CC2017 to maximize its compatibility.

  • Remi Monedi

    April 10, 2020 at 8:57 am

    It works! Thank you Dan!

Viewing 1 - 9 of 9 posts

Log in to reply.

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