Evenly distribute layers

Expression

This expression allows you to evenly distribute any number of layers. So, you could have 10 layers and by applying this expression the layers will distribute themselves evenly as per your specifications.

expression: 

gap = 100;
startingPos = [ 360 , 240, 0 ];
//--
dispVec = [0, 0, 1];
i = index - 1;
startingPos + (i * gap * dispVec)

Instructions: 

Simply paste the expression into the position property for each layer. Change the gap variable to adjust the gap between the layers, and change startingPos to adjust the position of the first layer. The expression assumes 3d space.

To make things more interactive you can add a slider control effect to a null and replace "100" with a link to that effect (which would look something like this: gap = thisComp.layer("Null 1").effect("Slider Control")("Slider");)