Created
August 10, 2012 09:31
-
-
Save ff6347/3312926 to your computer and use it in GitHub Desktop.
rename layers in illustrator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #target illustrator | |
| var docRef = app.activeDocument; | |
| with (docRef) { | |
| var layerlist = new Array(); | |
| for (var i = layers.length-1; i >= 0; i--) { | |
| if (layers[i].visible == true){ | |
| layerlist.push(layers[i]); | |
| }; | |
| }; | |
| for (var key in layerlist){ | |
| layerlist[key].name = 'layer name '+ key; | |
| } | |
| }; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment