Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Source Text Repeat Expression

Tagged: 

  • Source Text Repeat Expression

  • Graeme Tait

    November 17, 2021 at 2:19 pm

    I’m trying to Add a repeat text expression to my source text. However, i already have an expression in there to take the source text from the comp name. I’m new to expressions and struggling being able to make it repeat several times on the same line.

    My expression for the source text is:

    compName = thisComp.name;

    compName.substring(compName.indexOf(‘-‘)+2);

     

  • Dan Ebberts

    November 17, 2021 at 4:40 pm

    This should work, as long as you’re using the JavaScript expression engine:

    compName = thisComp.name;

    compName.substring(compName.indexOf('-')+2).repeat(3)

Viewing 1 - 2 of 2 posts

Log in to reply.

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