Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions “Random jump cuts”… but at irregular intervals?

  • “Random jump cuts”… but at irregular intervals?

    Posted by Julie.jenkinson on November 9, 2007 at 3:24 am

    Hello there,

    I’m trying to do an effect very similar to the one produced by the”random jump cuts” expression at motionscript.com.
    All I’d like to change from that expression is the interval between two random jumps. In that code it is always the same (segDur = .5;). I’ve tried something like segDur = random (.4,.6) which should produce something equivalent but actually it results in very fast cuts, as if the expression was being evaluated all over again every new frame. Any idea?

    Julie.

    Noel Powell replied 13 years, 5 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    November 9, 2007 at 11:36 pm

    Something like this should work:

    minDuration = 0.3;
    maxDuration = 0.7;
    minVal = inPoint;
    maxVal = outPoint – maxDuration;

    tEnd = 0;
    n = 0;
    seedRandom(n, true);
    preRun = random(maxDuration);
    while (time + preRun >= tEnd){
    n++;
    seedRandom(n, true);
    dur = random(minDuration, maxDuration);
    tEnd += dur;
    }
    t = time + preRun – (tEnd – dur);
    n += 9973;
    seedRandom(n, true);
    startVal = random(minVal, maxVal);
    linear(t, 0, dur, startVal, startVal + dur);

    Dan

  • Noel Powell

    March 25, 2013 at 4:33 pm

    Hi Dan, I too am trying to get random jump cuts at irregular intervals, but this expression, and the one on MotionScript.com don’t seem to produce true jump cuts, since footage with jump cuts would only cut forward in time. These expressions make the footage go forward and back and anywhere between the inPoint and outPoint. I’m wondering if there’s an easy solution to this?

    What I thought would work, was to change the minVal and maxVal. So I tried this:

    maxCutLength = 1 //Maximum amount that the footage can jump forward
    minVal = time;
    maxVal = time + maxCutLength;

    While this does a better job of making the footage move more linearly in time, it still jumps back in time, as well as forward in time.

    -Thanks

    After Effects templates – lens flares, light leaks, old film effects, digital glitches, VHS glitches, and more: https://CreationEffects.com

  • Dan Ebberts

    March 25, 2013 at 8:08 pm

    Maybe something like this:

    minCut = .5;
    maxCut = 1;
    minDur = 0.3;
    maxDur = 0.7;

    tStart = tEnd = 0;
    startVal = endVal = 0;
    dur = cut = 0;
    seedRandom(index, true);
    while (time >= tEnd){
    dur = random(minDur, maxDur);
    cut = random(minCut, maxCut);
    tStart = tEnd;
    startVal = endVal;
    tEnd += dur;
    endVal += dur + cut;
    }
    linear(time, tStart, tEnd, startVal, startVal + dur);

    Dan

  • Noel Powell

    March 25, 2013 at 9:34 pm

    Works perfectly. Thanks so much for your time, Dan.

    After Effects templates – lens flares, light leaks, old film effects, digital glitches, VHS glitches, and more: https://CreationEffects.com

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