Activity › Forums › Adobe After Effects Expressions › random freeze frame time remapping
-
random freeze frame time remapping
Posted by Steven Kutny on July 24, 2009 at 9:45 pmHi,
I’m looking for a time remapping expression that when applied, would make the pre-comped layer freeze on random frames. I could then duplicate that layer many times causing each copy to be a different random frame freeze frame. Any thoughts?
Thanks,
Steve
Steven Kutny
Digital Artist
http://www.stevenkutny.comS.j. Deluise replied 15 years, 2 months ago 4 Members · 17 Replies -
17 Replies
-
Dan Ebberts
July 24, 2009 at 10:01 pmTry this:
seedRandom(index,true);
freezeTime = random(inPoint,outPoint);
Math.min(time,freezeTime)Dan
-
Kevin Camp
July 24, 2009 at 10:02 pmdan beat me to it
🙂
Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW -
Kevin Camp
July 24, 2009 at 10:02 pmsomething like this might work for you:
seedRandom(index,true);
random(inPoint,outPoint)paste it into the time remapping expression field
Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW -
Dan Ebberts
July 24, 2009 at 10:05 pmThey’re not quite the same though. Yours may be what he’s after. Mine runs until it hits the freeze frame.
Dan
-
Steven Kutny
July 24, 2009 at 10:13 pm -
S.j. Deluise
March 5, 2011 at 4:06 pmHow would I modify this to change the speed at which the freeze frames change in the main comp?
Right now my precomp has a bunch of sequenced photos at 1 frame a piece — or should I precomp differently? -
Dan Ebberts
March 5, 2011 at 5:08 pmWhat do you mean by “change the speed”? What are you trying to do exactly?
Dan
-
S.j. Deluise
March 5, 2011 at 5:35 pmI want to show a random photo in the precomp for about 3 frames each. (or longer, depending on how it feels), then duplicate the precomp to create a mosaic of randomly cycling images.
With this…
seedRandom(index,true);
freezeTime = random(inPoint,outPoint);
Math.min(time,freezeTime)…it is cycling thru the photos really fast. But I suspect my precomp is setup wrong to make proper use of the expression.
My current workaround was sequencing all the photos in the precomp at 3 frames each. In the main comp, I’m just using a loopOut, and then creating my duplicate precomps and offseting them so they run at different points. I’m sure there’s a much neater, and more random way to do this.
-
Dan Ebberts
March 5, 2011 at 5:49 pmSomething like this probably:
freezeFrames = 3;
seed = Math.floor((time – inPoint)/framesToTime(freezeFrames));
seedRandom(seed,true);
freezeTime = random(inPoint,outPoint);Dan
-
S.j. Deluise
March 5, 2011 at 6:06 pmI’m getting odd results. My main comp is 10 sec. My precomp layer is time remapped with this expression, but for the first 5 seconds, the time-remap value stays on :25, then a couple times in the last 5 seconds, it changes to a random value, then back to :25.
And the first time remap keyframe of my precomp is also set to hold. Is that wrong? Embarrassed, I think I’m butchering this.
Reply to this Discussion! Login or Sign Up