Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Source text issue with new AE javascript

  • Source text issue with new AE javascript

    Posted by Bryan Woods on April 19, 2019 at 4:31 pm

    Ok, in the past I’ve been able to add a dynamic number plus a string in the same line of a source text attribute. Something like this:
    effect("Slider Control")("Slider")+" seconds"

    And I’ll get the number and the word “seconds” together as one output.

    But now, with the latest AE update and their adjustments to javascript, this doesn’t seem to work anymore. If I try this, I get a syntax error stating that it’s expecting a semicolon after …(“Slider”). The output produces “NaN”. What am I doing wrong here now?

    Bryan Woods replied 7 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 19, 2019 at 5:26 pm

    Just add .value to the slider:

    effect(“Slider Control”)(“Slider”).value+” seconds”

    Dan

  • Bryan Woods

    April 20, 2019 at 12:44 am

    Ah, I see. have to be more specific now I guess. Thanks!

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