FORUMS: list search recent posts

A way to NAME MARKERS with numbers 1 to how ever many?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Curtis tyrell-wood
A way to NAME MARKERS with numbers 1 to how ever many?
on Jun 17, 2020 at 11:40:25 pm

I would like to number my markers from 1 to how ever many markers I have.

lets says I have 50 markers on a comp I would like to numbers them from 1-50 in the order from first to last (left- right)/1-50.

Can anybody help?

Thanks in advance!


Return to posts index

Filip Vandueren
Re: A way to NAME MARKERS with numbers 1 to how ever many?
on Jun 21, 2020 at 12:22:13 pm

You'll need to run an extendscript like this one:


app.beginUndoGroup("number markers");

sl= app.project.activeItem.selectedLayers;

for (var i=0; i<sl.length; i++) {
var l = sl[i];
for (var j=1; j<=l.marker.numKeys; j++) {
myMarkerObj = new MarkerValue(j);
l.marker.setValueAtKey(j,myMarkerObj);
}
}
app.endUndoGroup();


This will number the markers on the first currently selected layer.

(copy this expression from the website, not your email-notification, 'cause it might not work)



Return to posts index

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