Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Expression to split text

  • Expression to split text

  • Gabriel Silva

    March 4, 2020 at 9:38 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.

  • Dan Ebberts

    March 4, 2020 at 10:26 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

  • Gabriel Silva

    March 4, 2020 at 10:45 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!

Viewing 1 - 3 of 3 posts

Log in to reply.

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