Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Reference Bottom Layer

  • Reference Bottom Layer

    Posted by Forrest Brown on June 20, 2019 at 7:00 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

    Forrest Brown replied 7 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    June 20, 2019 at 8:39 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.

  • Forrest Brown

    June 20, 2019 at 10:06 pm

    Thanks Andrei, that was it!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy