Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to increase particular keyframe value every n frames? SOLVED

  • Expression to increase particular keyframe value every n frames? SOLVED

    Posted by Dhruv Sharma on February 16, 2018 at 11:36 am

    Hi,
    So Im creating a typewriter effects where each letter appears every 4 frames.
    Right now I’m doing it manually but how I would I go about doing the same using expressions?
    I am using the animator with the start value increasing every 4 frames to make the letters appear (Using index instead of percentage)
    Thanks 🙂

    EDIT:-
    FOUND IT
    Thanks to the tip given in this post: https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=9339&univpostid=9339&pview=t

    and my own experiment (mainly adding any number after the animator expression to see if it did something, and then replacing the number with x, where x I got from the aforementioned post) I managed to solve my own problem.
    I used a factor of .25 to multiply to the value of x so that it would only reveal one letter every 4 frames. And then I used posterize time with a factor of 6.25 to ensure that the opacity would go from 0 to 100 only on the 4th frame (without posterize time the letters would fade in instead of popping in like they do with it on)

    For anyone wondering my composition fps is 25, so to get an animation aafter every 4 frames I needed a factor of 6.25 (25/4=6.25). The final expression looks like the one below

    posterizeTime(6.25);
    x = (time / thisComp.frameDuration) * .25;
    text.animator("Animator 1").selector("Range Selector 1").start + x;

    I also did one more thing I added the following code to range selector end, so that you can type as much as you want and it will animate automatically

    text.sourceText.length

    of course the opacity of the animator is set to 0.

    Dhruv Sharma replied 8 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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