Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Count number of markers with the same name

  • Count number of markers with the same name

    Posted by Shin Huynh on February 28, 2020 at 9:58 pm

    i have a layer and markers with different names on it , some of the them have a same name “POS” , i would like to count how many POS markers there are . Somebody help me , please

    Shin Huynh replied 6 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 28, 2020 at 11:38 pm

    This should work:


    L = thisComp.layer("your_marker_layer");
    m = L.marker;
    count = 0;
    for (i = 1; i <= m.numKeys; i++){
    if (m.key(i).comment == "POS") count++;
    }
    count

    Dan

  • Shin Huynh

    February 29, 2020 at 1:26 am

    Thank you so much , you’re always my savior, Dan .????????????????????????

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