ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Two expressions in the Source text

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
nicolas rey
Two expressions in the Source text
on Jun 29, 2020 at 6:18:45 pm

Hi!
I am trying to combine two expressions in the Source text.
One to limit the number of characters and another to force the use of lowercase letters.
I tried the following:

text.sourceText.substr (0.30);
value.toLowerCase ();

But they don't work at the same time ...
Any suggestion?

Thank you so much!!!!


Return to posts index

Filip Vandueren
Re: Two expressions in the Source text
on Jun 29, 2020 at 7:14:31 pm

Pretty close.

However "value" would refer back to the original pre-expression value; doesn't take into account the method you did in line 1.
You can just string the methods together like this:

text.sourceText.value.substr(0,30).toLowerCase();



Return to posts index

nicolas rey
Re: Two expressions in the Source text
on Jun 29, 2020 at 7:27:15 pm

I really appreciate it, it worked perfect!


Return to posts index

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