Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression to determine topmost visible layer ?

  • expression to determine topmost visible layer ?

    Posted by Accountclosed on April 10, 2007 at 1:53 pm

    hi people

    would anybody know how to access the index value of the topmost visible layer in a comp…?
    I have a bunch of sequenced layers in a comp all at different positions and I want a single text layer to ‘read out’ the y val of the visible layer at that time. I’m currently using workarounds with parented nulls etc but this is still tedious. Is there any way to workout which is the top most layer that is visible at any point in a comp ?

    cheers, daniel

    Dan Ebberts
    replied 19 years ago
    3 Members · 2 Replies
  • 2 Replies
  • Sebastien Allain

    April 10, 2007 at 3:22 pm

    have a look to this post, very useful:
    https://forums.creativecow.net/readpost/227/1212?

    sebastien

  • Dan Ebberts

    April 10, 2007 at 3:27 pm

    Try this one”

    txt = “”;
    for (i = 1; i <= thisComp.numLayers; i++){ if (i == index) continue; L = thisComp.layer(i); if (! (L.hasVideo && L.active)) continue; if (time >= L.inPoint && time < L.outPoint){ txt = "" + L.position[1]; break; } } txt Dan

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