Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions sourceText expression “hello world” > “h*e*l*l*o* *w*o*r*l*d*” ?

  • sourceText expression “hello world” > “h*e*l*l*o* *w*o*r*l*d*” ?

    Posted by Sergio Juyak on May 17, 2012 at 2:24 am

    I’d like an expression that will insert a chosen character in-between every character in my text object. If my text was “hello world,” the expression would replace the text with “h*e*l*l*o* *w*o*r*l*d*”. Can someone direct me to a similar example or suggest how i might go about this? Perhaps iterate through each character and then use && concatenate something something?
    thanks

    Sergio Juyak replied 14 years, 2 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    May 17, 2012 at 2:27 am

    This should work:

    str = “”;
    for (i = 0; i < value.length; i++)
    str += value[i]+”*”;
    str

    Dan

  • Sergio Juyak

    May 17, 2012 at 2:42 am

    and it does…

    Hey Dan, how might one thank your for all your expression help? I thought I might simply buy/license some script or bit of code of yours, but I don’t seen anything for sale online with your name on it.

  • Dan Ebberts

    May 17, 2012 at 2:57 am

    Thanks for the thought. I keep meaning to add a PayPal tip button to my web site, but I never seem to get around to it.

    Dan

  • Sergio Juyak

    May 17, 2012 at 7:18 am

    I think a paypal tip jar is a *great* idea. Please find the time to set this up.

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