Changing the visible layers for Illustrator documents
Sandee Cohen September 17, 2013
When you place a layered Illustrator file, you have the options of showing or hiding those layers from within InDesign instead of having to go back to Illustrator to change the visible layers. This is a terrific way to show alternate versions of a file, make working with buttons or object states easier, or just use one Illustrator document for multiple instances in an InDesign document. For instance, here are a bunch of icons placed in InDesign.
However, if you look at the Illustrator file, you'll see that each icon, as well as the modifying colors, are on their own layer.
This technique also makes it easy to create multi-state objects with alternate images for each state.
Working with Illustrator Layers
So how do you display the layers of an Illustrator file? There are two places to set the layer visibility. The first is when you choose the Illustrator file to place. Click the option to Show Import Options (or hold the Shift key as you click Open) and you open the Place PDF dialog box. (Don't let the fact that InDesign thinks the Illustrator file is a PDF bother you. It only indicates that you can do the same actions with placed PDFs.)
Click the option for Layers and you'll see the names of the layers in the Illustrator document along with eyeball controls. Click each of the eyeballs to show or hide the layers.
Unfortunately, there is no way in the core program to place the file multiple times with each layer visible. I create the various options by place the file once and then duplicating it several times. Then I change the layer visibility. (See the next paragraph.)
Once you've already placed a file, you can change the layer visibility by selecting the image and choosing Object > Object Layer Options. (If you use this feature often, you'll want to apply a keyboard shortcut to the command.) This opens the same sort of dialog box where you can change the visibility eyeballs. The major difference is there is no preview field in the dialog box. You need to click the Preview checkbox to see what your actions are doing.
The Riddle of the Bounding Box
One thing that recently stumped me was when the Illustrator artwork moved to a new position when I turned off the visibility of the layers. In this case I had the image of a button with a shadow. When I turned the shadow layer on and off, the button shifted position within the frame as shown below.
The solution for this comes from the Import Options dialog box. Make sure the Crop to menu is set for Bounding Box (All Layers). This makes sure that even if a layer is hidden, its boundary is still used for the position of the art.
Unfortunately I haven't been able to find any way to change this setting once the file has been placed in the document. The only way I've been able to change the setting is to reimport the file. [There is a script that allows it, but it's not working in CC yet. We'll update this if we can get the script working.]
Keeping your Visibility Settings
One more thing you need to remember. In the Layer control, make sure your Update Link Options are set to Keep Layer Visibility Overrides. This way you can make changes to the layers in the Illustrator file without losing the visibility settings for each placed version of the file. However, this won't work if you add new layers to the Illustrator files. InDesign can't figure out which layers should or should not be visible so it reverts to the saved version of the file.
For more information:
If you want more information, Bob Levine covered this topic a while back.
Latest posts by Sandee Cohen (see all)
- InDesign Documents on Behance - July 8, 2015
- Tip of the Week: Turn Off Multiple Layers Simultaneously - January 27, 2015
- Temporarily Turning Off a GREP Style - December 18, 2014
Sign up for the InDesign
Tip of the Week
- Latest news:
- Inside Mike Rankin's head (interview with our Editor-in-Chief!)
- All About Alternative Glyphs
- Obscure InDesign Feature of the Week: Hide Column
- Ulrike said about Keeping the Same Scale Size when Updating or Relinking to Images:appling the tips above did not help me.…
- Hervé Pfeiffer said about Understand the Current Limitations of CC Libraries:Hi everyone, Any idea where the CC libraries…
- Irfan Lubis said about 4 causes for text wrap misbehavior:It helped! Thank you so much...
Recent Forum Posts
Reference a page number on another page
10 hours, 2 minutes ago
Does InDesign XML support Footnotes
6 hours, 16 minutes ago
Character Styles after Placing MS Word
9 hours, 43 minutes ago
Remove character at the end of a line of wrapped text
4 hours, 6 minutes ago
blue dotted stroke around text box
1 day, 2 hours ago