-
Random Jump Cuts — sliding off the end of the footage?
Hello! I have a query about the Random Jump Cuts expression which appears on Dan Ebberts’ famous website. It’s a bit of a favourite of mine. The code is as follows:
segDur = .5;// duration of each "segment" of random time
minVal = inPoint;
maxVal = outPoint - segDur;seed = Math.floor(time/segDur);
segStart = seed*segDur;
seedRandom(seed,true);
startVal = random(minVal,maxVal);
endVal = startVal + segDur;
linear(time,segStart,segStart + segDur, startVal, endVal);
In the third line the variable “maxVal” is changed to the layer’s Out Point minus the segment duration so that we don’t slide off the end of the footage. Except that this doesn’t seem to work anymore. It now does slide off the end of the footage and shows a held final frame.
I’ve used this expression quite a few times and have never encountered a problem before – could it be to do with switching from CS4 to CS5? I can’t for the life of me find anything wrong with the code.
Can anybody help?
J. J. Guest