-
Layer Renamer
I created this script to rename layers so easy for active comp.It works fine. Use it if you need.
function stingStartsWith (string, prefix) {
return string.slice(0, prefix.length) == prefix;
}app.beginUndoGroup("My Undo");
var comp = app.project.activeItem;
for (var i=1; i<=comp.layers.length; i++){ var myLayer = comp.layers[i]; var myLayerstartswith = stingStartsWith (myLayer.name, "Layer"); if (myLayerstartswith){ myLayer.selected = true; myLayer.name = "My Layer"; } else { myLayer.selected = false; } } app.endUndoGroup();
Sorry, there were no replies found.