[Midnight Oil] “I was thinking about importing the images as a sequence, but I don’t know how to make it randomly jump around with dissolves between them. If I could do that, I could just start the sequence at different times on the grid.”
If that scenario is random enough for you, where you have 1 sequence that just is looped,
then why not just first make one or two comps with the 15 frame-dissolves, (takes about 5 seconds with the sequence layers command)
render them out, re-import and interpret the movie to loop 99 times.
Now you can drop those movies in your layers and with the “pan-behind”-tool you can choose your start-point.
If you don’t want to alter the startpoints manually, enable time-remapping and add a random static value to each layer’s current time.
—
An all-expression way could also use time-remapping:
set up a pre-comp with al your images sequenced.
make a new comp with two copies of that precomp.
let’s say you want to fade in a layer over 1 second, hold for one second, then fade to the next, hold for one second etc.
create some opacity keyframes for the top-layer to reflect that animation:0-100 in 1 sec, hold 1 sec, then 100-0 down, hold 1 sec, then put a final 0% keyframe.
add a loopOut(type = "cycle", numKeyframes = 0)-expression so the keyframes get repeated.
give the time-remapping this expression:
holdTime=4; //hold each frame 4 seconds;
holdOffset=0; // offset 0 seconds
maxTime=source.duration-source.frameDuration;
seed=Math.floor((time+(holdTime-holdOffset))/holdTime);
seedRandom(seed, timeless = true);
random(maxTime)
do the same for the bottom layer, but here, change the holdOffset-value to 1
copy that pair of layers for each square and scale/position them.
Keep in mind that being a true random sequence, you will get duplicate frames from time to time.