ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Using an expression to refer to to a layer above its own layer in the timeline.

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Christopher Rutherford
Using an expression to refer to to a layer above its own layer in the timeline.
on Feb 20, 2020 at 7:45:14 pm

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.


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]