Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Need help with After effects expressions

  • Need help with After effects expressions

    Posted by Roman Storzhuk on May 9, 2024 at 10:16 pm

    Hi Guys! I have that task “We need the text to appear frame by frame like this: 1 frame -1 letter 50%, 3 frame 1 letter 100% opacity, 3 frame – 2 letter 50% opacity, 4 frame – 2 letter 100% opacity and so on. It has to work with every word length.”

    I dont know how to work with expressions,can someone help me please?How can i animate this? Thanks)

    Roman Storzhuk replied 2 years, 2 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    May 9, 2024 at 11:34 pm

    I’m not sure, based on your description, but try this. Add an Opacity Animator to your text (set the Opacity value to 0). Then add an Expression Selector, and set its Amount property to this expression:

    f = timeToFrames(time);
    if (textIndex == f){
    50;
    }else if (textIndex < f){
    0;
    }else{
    100;
    }
  • Roman Storzhuk

    May 10, 2024 at 6:28 am

    Hi Dan! Thanks for feedback.How i understood i need to change value of selector every 3 frames to add a half opacity of new letter.I worked with expressions like this and i didnt find anything about it in internet.

    Thank you for your help!

  • Roman Storzhuk

    May 10, 2024 at 6:59 am

    Oh wow.I did it! Not exactly i wanted but it works😀

    fps=1.0/thisComp.frameDuration;

    temp = thisComp.layer(“Text_Suchbegriff”).text.sourceText;

    frameInterval = 3;

    f = timeToFrames(time-1.5)

    k = fps * frameInterval;

    x = temp.length;

    y = 100/x

    s = y/2

    value = (f*s)/frameInterval

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