Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Write-on Text from SourceText via Slider. Pos Y slide-up via Expression selector

  • Write-on Text from SourceText via Slider. Pos Y slide-up via Expression selector

    Posted by Gerald mark Soto on March 11, 2025 at 5:27 pm

    Im currently using this expression with an effect slider to reveal one letter at a time via the Source Text paramter:

    —–

    s = effect(“Slider Control”)(“Slider”).value;
    value.substring(0, s);

    —–

    My question is: I would like to have each letter Position Y slide up with ease about 30 pixels as each letter is being revealed via the effect slider. I assume this needs to be done with a position text animator via the expression selector. But whar exactly should that be? I can seems to get a proper working expression . Help. and thank you.

    Gerald mark Soto replied 2 weeks ago 3 Members · 12 Replies
  • 12 Replies
  • Dan Ebberts

    March 11, 2025 at 6:02 pm

    You could add a Position Animator and set its Position value to 0,30. Add an Expression Selector, delete the Range Selector, and use this expression for the Expression Selector’s Amount property:

    s = effect("Slider Control")("Slider").value;
    ease(s,textIndex,textIndex+1,100,0)

    It uses the same slider as your Source Text expression.

  • Gerald mark Soto

    March 11, 2025 at 6:14 pm

    It doesnt exactly work. It snaps into position rather than animate slide up. any ideas sir?

  • Gerald mark Soto

    March 11, 2025 at 6:18 pm

    this is sorta working but it stops animating after i run out of keyframes.

    —–

    s = Math.round(effect(“Text_Reveal”)(“Slider”).value);

    if (textIndex == s)

    70

    else if (textIndex < s)

    0

    else

    100
    —–

  • Gerald mark Soto

    March 11, 2025 at 6:23 pm

    Oh never mind. i ram previewed my expression and its moving so slow and at like 4 frames per second. it definitely did not work.

  • Yoan Boisjoli

    March 11, 2025 at 6:38 pm

    Hey Gerald, don’t know if it can help but this is pretty useful and I think it might help you out!

  • Gerald mark Soto

    March 11, 2025 at 6:38 pm

    Ok. so back to the expression. that i was using. it actually does work. but the animation poses at each keyframe. you need to try it out your self to see what I mean. essentially this expression works but each key letter should play out the animation independently as it appears. any ideas?

    —–

    s = Math.round(effect("Slider Control")("Slider").value);

    fadeDuration = 10;

    if (textIndex < s - fadeDuration) {

    0;

    } else if (textIndex >= s) {

    100;

    } else {

    ease(textIndex, s - fadeDuration, s, 0, 100);

    }

  • Gerald mark Soto

    March 11, 2025 at 6:42 pm

    text evo would not be an option. I require the SourceRectTime of the text layer. I eventually want this type layer to drive the size of a box that it will be on top of. You cant use TextEvo for that.

  • Dan Ebberts

    March 11, 2025 at 7:42 pm

    It works for me if I change your fadeDuration from 10 to .333.

  • Gerald mark Soto

    March 11, 2025 at 7:51 pm

    its not working for me because im using toggle hold keyframes. Im recreating a typing style animation letter by letter with pauses in-between some letters. so the animation stops after each keyframe.

  • Gerald mark Soto

    March 11, 2025 at 8:02 pm

    Yup thats the definitely the problem. Is there anyway for this to work with toggle hold keyframes? so i can create a type writer style animation?

Page 1 of 2

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