I got curious as to whether that would actually work, and it indeed does. Linked here’s a rather basic application of that idea.
When a card is moved off the original position, the rest of the cards above it move down by one level (or index value) and thus drop down a position. There’s no tweening here, that’s another layer of complexity, but could certainly be added. It would also make more sense if the index was changed when the distance of the card from the original position exceeded the card dimensions.
While doing this I discovered that the expressions evaluate correctly only if the text layer is below the card layers. There’s likely an order-of-execution explanation to this, which I wasn’t aware of. I thought the property values are evaluated post-expression no matter the layers sequence but it seems this is not the case. At least not here. Maybe someone in the know can shed light on that.
12739_stackingtest.aep.zip
Kalleheikki Kannisto
Senior Graphic Designer