ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Source text issue with new AE javascript

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Bryan Woods
Source text issue with new AE javascript
on Apr 19, 2019 at 4:31:53 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?


Return to posts index

Dan Ebberts
Re: Source text issue with new AE javascript
on Apr 19, 2019 at 5:26:51 pm

Just add .value to the slider:

effect("Slider Control")("Slider").value+" seconds"


Dan



Return to posts index

Bryan Woods
Re: Source text issue with new AE javascript
on Apr 20, 2019 at 12:44:18 am

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]