I have a list of about 100 layers in a composition. I use this script to create random fading for those layers.
segMin = .3; //minimum segment duration
segMax = .7; //maximum segment duration
minVal = 0;
maxVal = 100;
seedRandom(index,true);
segDur = random(segMin, segMax);
seed = Math.floor(time/segDur);
segStart = seed*segDur;
seedRandom(seed,true);
startVal = random(minVal,maxVal);
seedRandom(seed+1,true);
endVal = random(minVal,maxVal);
ease(time,segStart,segStart + segDur, startVal, endVal);
It used to work but I was away from the project for a while and opened the file to make changes for a client. Now they all the layers pulse in unison even though if I expand the layers opacity setting and scroll through the time-line, the values do fluctuate in the opacity field as I would expect. Just the actual render shows the flashing in sync.
This expression statement worked in november of last year and now it doesn't. Did something change? I know AE updated the javascript engine but it was supposed to be compatible with the old engine. Also, I the opacity numbers do what I expect just the render/preview does not.