This script helps cleaning up sublayers in Illustrator.
The script will prepend all sublayers with the parent layers name and remove the unnecessary copy [number] in the sublayers names.
Make sure that the root layer’s subobjects are sublayers by using Release to Layers (Sequence).
Save Clean Sublayers.jsx
in your scripts folder.
- Windows:
Program Files\Adobe\Adobe Illustrator <version>\Presets\<language>/Scripts
- OS X:
/Applications/Illustrator <version>/Presets/<language>/Scripts
Run it from ExtendScript Toolkit.
- Make sure you have coffeescript installed.
- Run
cake watch
from the root of folder. - Run
cake build
to output .jsx file.