I was about to make a feature request in the dedicated forum but decided first to post here to make sure this is currently not possible.
Rename multiple layers.
Currently selecting multiple layers in the layer's panel and choosing "Options for Selection" allows changing all other options but not the name. Please enable name changing too which should come with automatic sequence number added at the end of the names.
This is a user to user forum. Adobe rarely checks in on us here. I'm not sure what feature request forum you're looking at but as far as I know, the best way to communicate a feature request is via the webform located here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
while we wait for the feature....
select something in each layer you need renamed before running the script.
var idoc = app.activeDocument;
var layerName = Window.prompt ("Enter Base Layer Name", "Layer-", "Rename Selected Layers");
var postFixNum = Window.prompt ("Enter Starting sequence number", 1, "Rename Selected Layers");
for (i=0; i<idoc.layers.length; i++) {
var ilayer = idoc.layers[i];
if (ilayer.hasSelectedArtwork) {
ilayer.name = layerName+postFixNum;
postFixNum ++;
}
}
Carlos you are the man
Thank you very much - it works like charm.
@ Jesseham, yes, I know the feature request forum but I posted here first so that Carlos was able to deliver my feature request faster than Adobe ![]()
@ scott, I need this all the time, for example right know I'm creating an illustration of people riding all terrain vehicles. The riders, vehicles, and environment are each with multiple layers. Because it is a side view one leg and arm of the riders are in front and the other on the other side of the vehicles. Parts of each vehicle like the steering handles are in front between and below the layers of the rider. Because Illustrator can't group preserving layers, in order to select all of the rider/s or the vehicle/s for things like changing the color balance for example, I have to rely on the names of the layers. So my layer panel looks like this:
ATV1_1
rider1_1
rider1_2
rider1_3
rider1_4
ATV1_2
ATV1_3
rider1_5
rider1_6
ATV1_4
ATV2_1
rider2_1
rider2_2
rider2_3
rider2_4
ATV2_2
ATV2_3
rider2_5
rider2_6
ATV2_4
I'm fine with numbers but if more descriptive words are needed like helmet, jacket, gloves, etc. I can add them manually at the end but even then the script still helps with quickly naming the main parent words. It would be great if Illustrator in addition to groups, also have a parenting feature that can make it easy to select and manipulate objects across multiple layers.
North America
Europe, Middle East and Africa
Asia Pacific