: Does anyonw have a script for adding sequential numbers (as a prefix) to layer names in Illustrator I'm looking for a script that can add sequential numbers as a prefix to existing names of
I'm looking for a script that can add sequential numbers as a prefix to existing names of layers in Adobe Illustrator.
Does anyone here known of one? Or, could you direct me to where I may find one?
Thanks in advance,
Dave
More posts by @Lee3735518
1 Comments
Sorted by latest first Latest Oldest Best
Perhaps this does the trick for you?
#target illustrator
var doc = app.activeDocument;
var layerCount = doc.layers.length;
for (var j = 0; j < layerCount; j++) {
layer = doc.layers[j];
layer.name = j.toString() + "_" + layer.name;
}
and same thing in reverse
#target illustrator
var doc = app.activeDocument;
var layerCount = doc.layers.length;
for (var j = 0; j < layerCount; j++) {
layer = doc.layers[layerCount-1-j];
layer.name = j.toString() + "_" + layer.name;
}
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.