Averaging one layer between two othersThis expression positions and maintains one layer at a balanced distance between two other layers. To achieve this effect, you need three layers in your composition. To average one layer between two others:
mul(.5, add(this_comp.layer(1).position, this_comp.layer(2).position)) |