Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Randomly/semirandomly duplicate a frame?

  • Randomly/semirandomly duplicate a frame?

    Posted by David Fulde on August 22, 2022 at 8:57 pm

    Hello!

    I’m making a stop-motion like project, and while it’s animated on twos, I’d like random (Or semi-random) frames to be animated on threes. I’m sure there’s an expression way to do this with Time remapping?

    David Fulde replied 3 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 22, 2022 at 9:38 pm

    I’m not sure if this is anywhere near what you’re looking for, but this time remapping expression should hold roughly 20% of the frames for 3 frames, the others for 2:

    randomPct  = 20;
    f = timeToFrames(time);
    fNew = i = 0;
    seedRandom(index,true);
    framesToTime(fNew)
    while (i <= f){
    i += random(100) < randomPct ? 3 : 2;
    fNew ++;
    }
    framesToTime(fNew)
  • David Fulde

    August 25, 2022 at 5:04 pm

    This is perfect! Thank you!

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