ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression to split text

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gabriel Silva
Expression to split text
on Mar 4, 2020 at 9:38:01 pm

Hello people. Sorry for the google translator.
I need an expression that does the following:
I have a text separated by, a name, a feeling and a number, as in the following image.
I would like if possible to change only the name of the pre composition and change the text.



Return to posts index

Dan Ebberts
Re: Expression to split text
on Mar 4, 2020 at 10:26:37 pm

You could do something like this:

txt = thisComp.name.split("/");
txt[0] + "\r" + txt[1] + " " + txt[2]

but you'll lose the individual formatting of each word.

Dan



Return to posts index

Gabriel Silva
Re: Expression to split text
on Mar 4, 2020 at 10:45:54 pm

Perfect. It helped a lot!

Can you help me with one more thing? I have A precomp A, and within that precomp A I have a pre-comp B, within composition B I want a text.
I would like the text to follow the precomp B Index.

Can you help me I'm desperate!


Return to posts index

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