-
Automatically align different shapes based on layer index
Hi!
I’m looking for an expression to do the following. Let’s say I have 3 layers of different sizes, I would like to position them underneath each other depending on the index of the layers.
I’m assuming the solution will use the index and SourceRectAtTime expression, but I just can’t seem to get it right.
I’ve added a project file that shows what I want to achieve, but essentially, I would like to add a layer to the comp, then add an expression to the position property which places my new layer directly underneath the layer above it on the timeline no matter what the size of the layer is above it.
Is this possible?
Thanks so much in advance!