ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Reference Bottom Layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Forrest Brown
Reference Bottom Layer
on Jun 20, 2019 at 7:00:30 pm

I just know the basics of expression, so maybe this is a simple question.

I know how to reference another layer using something like this:

thisComp.layer("Red Solid 5")

But what I want to do is reference the bottom layer of a comp no matter how many layer are in the comp or what they are called.

Any suggestions?

Thanks,
Forrest


Return to posts index

Andrei Popa
Re: Reference Bottom Layer
on Jun 20, 2019 at 8:39:32 pm

I am not 100% sure if thisComp.numLayers works with expressions and can't test it right now, but my guess would be:
thisComp.layer(thisComp.numLayers)

Andrei
My Envato portfolio.


Return to posts index

Forrest Brown
Re: Reference Bottom Layer
on Jun 20, 2019 at 10:06:59 pm

Thanks Andrei, that was it!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]