ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Count number of markers with the same name

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shin Huynh
Count number of markers with the same name
on Feb 28, 2020 at 9:58:47 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


Return to posts index

Dan Ebberts
Re: Count number of markers with the same name
on Feb 28, 2020 at 11:38:10 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



Return to posts index

Shin Huynh
Re: Count number of markers with the same name
on Feb 29, 2020 at 1:26:41 am

Thank you so much , you're always my savior, Dan .👍🏻👍🏻👍🏻


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]