Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Display random keyframes

  • Display random keyframes

    Posted by Stacy Bias on September 29, 2017 at 5:26 pm

    Hi all!

    As may be clear from the asking of this question, I’m fairly new to AE. I want to create a bit of a stop motion/paper cut vibe to a project I’m working on. One of the elements is a campfire. I have about 15 hand-drawn flames. Here’s what I want to do:

    I want to put each one on a single keyframe in a pre-comp and then I want to loop it — but I want the loop to choose keyframes randomly so it’s not always the same flicker. I am 10,000% positive this has been covered before but I think I’m not searching the right terms. Ideas? Thanks kindly!

    Stacy Bias replied 8 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 29, 2017 at 5:59 pm

    I can’t tell if this is what you’re after, but it might get you started. Iimport your drawings as an image sequence, add the sequence as a layer, turn on time-remapping, and add this time remapping expression:

    n = 15; // number of frames
    framesToTime(Math.floor(random(n)))

    Dan

  • Stacy Bias

    September 29, 2017 at 6:29 pm

    Oooh! That sounds like it’ll work! I’m off for the weekend now but will give it a go on monday. Thanks so much for such a quick and helpful response!

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