Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Dan Ebberts

    March 8, 2014 at 4:46 pm

    It sounds like you might need a variation of this:

    https://www.motionscript.com/design-guide/source-name.html

    Something like this would display the index of the topmost currently-visible layer:


    txt = "";
    for (i = 1; i <= thisComp.numLayers; i++){
    if (i == index) continue;
    L = thisComp.layer(i);
    if (! (L.hasVideo && L.active)) continue;
    txt = L.index;
    break;
    }
    txt

    Dan

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