ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: 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


Dan Ebberts
Re: Using an expression to refer to to a layer above its own layer in the timeline.
on Feb 20, 2020 at 8:26:51 pm

You can do math on the layer's index to get to the layer above, like this:

thisComp.layer(index-1)

Or you can use relative indexing, like this:

thisComp.layer(thisLayer,-1)

but, you can't change the actual stacking order with an expression. It wasn't clear to me if you understood this. Sorry if you did. You could shuffle them in Z space if they are 3D layers though.

Dan



Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]