Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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 pm

    Hi,

    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.com

    S.j. Deluise replied 15 years, 2 months ago 4 Members · 17 Replies
  • 17 Replies
  • Dan Ebberts

    July 24, 2009 at 10:01 pm

    Try this:

    seedRandom(index,true);
    freezeTime = random(inPoint,outPoint);
    Math.min(time,freezeTime)

    Dan

  • Kevin Camp

    July 24, 2009 at 10:02 pm

    dan beat me to it

    🙂

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Kevin Camp

    July 24, 2009 at 10:02 pm

    something 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 pm

    They’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

    Thanks guys, this works! I appreciate it.

    Steven Kutny
    Digital Artist
    http://www.stevenkutny.com

  • S.j. Deluise

    March 5, 2011 at 4:06 pm

    How 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 pm

    What do you mean by “change the speed”? What are you trying to do exactly?

    Dan

  • S.j. Deluise

    March 5, 2011 at 5:35 pm

    I 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 pm

    Something 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 pm

    I’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.

Page 1 of 2

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