First to mind: (assuming colored solids) make a 3D solid that is thin and tall. Next attach an expression that sets the z position to a random number with a large range (code later) and the x value to a random range the same size as the width of the comp (or width of some object you want to match like N in netflix). Set the color to a random value using an expression. Then duplicate like crazy: either keep bashing cntrlD, or do a few and then select them all and hit cntrlD and then grab all those and repeat again. You’ll get huge numbers of layers in no time.
Make a 3D camera and fly into them. If they don’t fit all the way to the top of the screen due to the solids being too far back, just precomp the whole thing and apply a motion blur effect or Gaussian blur and set the direction to 0 degrees, and crank up the blur effect until they do fill the frame.
Here’s the expression that has to be on each layer:
Put expression on the Position attribute
seedRandom(5,true); // the number here can be anything really its just to get the seed started
zDistance=random(-5000,5000); //Set these numbers to something that works for your comp This value is basically how far away from the camera the solids can get – adjust as needed.
xDistance=random(0,1920);// this will place the solids between the left most side and right most side of frame in a 1920×1080 comp.
yDistance=940;// anchor point half way up the comp
finalPosition=[xDistance,yDistance,zDistance];// these are the three values of an xyz coordinate (don’t forget the square brackets)
By using the seedRandom function every time you duplicate a layer that seed is changed so each layer gets a gets a different seed, and therefore a different random number within the range. The seed is tied to the index of the layer (the layer number). The “true” paramater in the first line keeps the random numbers for that layer the same for the whole timeline.
You can also use this type of thing on the transparency with a random time statement that brings the opacity level up at a random time so they don’t all “turn on” at once.