Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions return value of layer index

  • Dan Ebberts

    October 15, 2013 at 4:08 pm

    For the layer with the expression:

    var idx = index;

    For a different layer

    var idx = thisComp.layer(“other layer”).index;

    Dan

  • Riccardo Sinti

    October 15, 2013 at 4:45 pm

    As always you rock!
    I was over thinking it, I guess, by by writing:

    var idx = thisLayer(index);

    or perhaps I was invoking some other aspect of the expression that doesn’t return the value of the layer’s index

    Thanks again

  • Dan Ebberts

    October 15, 2013 at 4:56 pm

    This should work as well:

    var idx = thisLayer.index;

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