Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Source Text Expression. Write on effect justified right. SourceRectAtTime Box

  • Source Text Expression. Write on effect justified right. SourceRectAtTime Box

  • Gerald Mark Soto

    November 30, 2017 at 3:50 pm

    I have been trying to figure out how to make type write on via source text. The reason i want to use source text rather then just a simple opacity & position animator is because I also want to apply the expression to a shape layer to perform the (SourceRectAtTime) so i can have a box the same size as the type. But as the type writes on it also gets bigger. And I want the type justified right.

    Are there source Text expression that can have a sentence write on? maybe it can be controlled via a slider so each word is an index number?

    Help.

  • Dan Ebberts

    November 30, 2017 at 5:25 pm

    Something like this maybe:


    s = effect("Slider Control")("Slider").value;
    str = "";
    txt = value.split(" ");
    for (i = 0; i < Math.min(txt.length,s); i++){
    str += (i > 0 ? " " : "") + txt[i];
    }
    str

    Dan

  • Gerald Mark Soto

    November 30, 2017 at 5:38 pm

    BOOM!! Thats it. How about having the ability to have the word as it appears with an opacity of 30% then when the next word appears its at 100%. So as each word appears it starts at 30% then becomes 100% after the next word appears. ????

  • Dan Ebberts

    November 30, 2017 at 7:13 pm

    Instead of having a source text expression, you could add an Opacity Animator (set the value to 0%), then add an Expression Selector and delete the Range Selector. On the Expression Selector, set Based On to Words, and add this expression for Amount:


    s = Math.round(effect("Slider Control")("Slider").value);
    if (textIndex == s)
    70
    else if (textIndex < s)
    0
    else
    100

    Dan

  • Gerald Mark Soto

    November 30, 2017 at 9:06 pm

    But i need it to have a expression on the source text because I want a box layer using the SourceRectAtTime expression. The only way SourceRectAtTime works is based on Source text value. I need the size of the box to increase as the sentence pops on.

  • Gerald Mark Soto

    November 30, 2017 at 9:09 pm

    Actually, i just combined them both and its doing exactly what i want. I think im good. thanks again señor. Your amazing.

  • Gerald Mark Soto

    April 20, 2018 at 8:22 pm

    Hello Sir, New question on this expression. Currently the words pop on and opacity pops from 30 to 100%. which is great but a new situation has come up. Is it possible to not have the words pop on but actually have each word slide out instead and the transparency go from 0 to 100%. So it will just be a smooth animation of words being revealed. Is this possible? Thanks again Sir.

  • Oscar Rodriguez

    August 13, 2020 at 1:18 am

    Hi, is there a way to make the animation per character and not per word? Thanks!

  • Oscar Rodriguez

    August 13, 2020 at 1:54 am

    this works perfect for me, but i need to be per character not per word, is there a way to do it? thanks a lot, sorry to bother

    s = effect("Slider Control")("Slider").value;
    str = "";
    txt = value.split(" ");
    for (i = 0; i &lt; Math.min(txt.length,s); i++){
    str += (i > 0 ? " " : "") + txt[i];
    }
    str

Viewing 1 - 9 of 9 posts

Log in to reply.

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