Hi fellow Illustrator Experts,
imagine you have a ton of EPS files which are build nearly the same.
All is sorted into layers - those Layers are all named and organized.
Every EPS has up to 7 layers, sometimes less.
My task is to make the layer on the bottom, the "Background" Layer invisible in all of them.
I tried to hide and unhide the layers to get my selection down to the background layer.
The only problem here ist, that the "hide - select all - unselect - hide again" steps don't always get me to the background layer - depending on the number of layers in the file.
With that in mind i am looking for an option/ a script / a trick to teach my batch that it should do the Aktion to the Layer with the name "Background" (based on the layer name).
Has anyone an idea how to do it or can point me into the direction where to look for a script that can do that, or has any tips for me how to create such a script?
I hope to hear from you soon.
You can target the bottom layer in your files with either of the following methods:
// 1.) Based on layer index var hideLayer = docID.layers[docID.layers.length - 1]; // 2.) Based on layer name var hideLayer = docID.layers.getByName("Background");
Either approach would target the bottom layer and should be applicable to modify accordingly and plug into your existing code.
Thanks a lot dear W_J_T,
just knowing there is a answer to get this running makes my week.
I will write my first script then today or tomorrow