ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Display random keyframes

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Stacy Bias
Display random keyframes
on Sep 29, 2017 at 5:26:24 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!


Return to posts index

Dan Ebberts
Re: Display random keyframes
on Sep 29, 2017 at 5:59:06 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



Return to posts index

Stacy Bias
Re: Display random keyframes
on Sep 29, 2017 at 6:29:39 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!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]