-
Using an expression to refer to to a layer above its own layer in the timeline.
Hey all,
currently daisy-chaining a bunch of layers so they stack automatically based on their shape sizes. Expression used on layer A is currently “thisComp.layer(“Layer B”).sourceRectAtTime().height” and on layer B it’s “thisComp.layer(“Layer C”).sourceRectAtTime().height” and so on.
Wondering if there was an expression that would make it such that reordering the layers in the timeline would update their position in the stack. My initial thought was using the layer index, but I couldn’t figure out a way to make it refer to the layer immediately above it in the timeline.
