Sub topic 3
Organizing Layers for Outline, Stitching and Details
This chapter assumes you can navigate Illustrator's panels, select objects, and tell a fill from a stroke. It also assumes you know garment parts such as the placket, hem and collar. Here you will build the layer structure that every later chapter relies on. A good structure lets you hide the stitching to check the silhouette, lock the outline while you add details, and hand a factory a file in which every line type can be found at once.
Why flats need a layer structure
A technical flat holds several kinds of information that serve different readers. The pattern maker reads the outline. The sample sewer reads the stitching. The merchandiser reads the annotations. If everything sits on one layer, you cannot edit one kind of line without disturbing another. Selecting a hem stitch line by accident and moving it is a very common error on a crowded file.
Layers solve this with three controls:
- Visibility (the eye icon) hides a layer so you can check other layers without distraction.
- Lock (the padlock icon) stops a layer from being selected or changed.
- Stacking order decides which layer draws on top. Layers higher in the panel draw over layers below.
Illustrator also has sublayers, which are nested layers inside a layer. They are useful for one case in this chapter: separating front and back views within a single layer. Most flats do well with a flat list of top-level layers.
The standard layer stack
Use these five layers, listed from top of the Layers panel to bottom:
| Layer | Contents | Typical state while drawing |
|---|---|---|
| Annotations | Callouts, measurement lines, notes, labels | Visible, locked until the end |
| Details | Zippers, buttons, pockets, collars, labels | Visible, unlocked when adding parts |
| Stitching | Topstitching, seam lines, bar tacks | Visible, dashed strokes |
| Outline | The closed silhouette and major seam paths | Visible, unlocked while drawing |
| Croquis | A reference image or sketch you trace | Locked, dimmed |
The order follows how readers rely on each layer. Annotations sit on top so that text is never covered by a fill. Croquis sits at the bottom because it is only a guide and must never cover your drawing.
Why this order
Consider what happens if Outline sits above Stitching and you later fill the garment with a color. The fill covers the stitching lines, and they appear to vanish. With Stitching above Outline, a filled shape always sits under the lines that describe it. Keeping lines above fills is the main reason for the order.
Details sits above Stitching because a zipper pull or button is physically on top of the stitching around it. If you draw a button over a topstitch line, the button should hide the part of the line it covers.
Creating the layers manually
- Open the Layers panel with Window > Layers.
- Double-click the default "Layer 1" and rename it Croquis.
- Choose New Layer from the panel menu, or click the "Create New Layer" button. New layers appear directly above the selected one.
- Name each new layer in turn: Outline, Stitching, Details, Annotations.
- Assign each layer a distinct color. Illustrator uses this color for the selection box and anchor points of that layer's objects, so you can see at a glance which layer a selected object belongs to.
The layer color matters more than it first seems. When you select a path and its bounding box is blue, you know it lives on the layer you assigned blue. When you suspect that a stitch line has landed on the Outline layer, the wrong color tells you immediately.
Setting up the Croquis layer
If you are tracing a sketch or a photo, place it on Croquis with File > Place. Then:
- Open the layer's options by double-clicking its name.
- Check Dim Images to and set a value around 30 to 50 percent. This makes the image pale so your black lines stand out.
- Lock the layer.
Check Template if you want the layer to be excluded from printing and export. A template layer is automatically locked and dimmed, and it does not appear in output. For flats this is usually the better choice, because a leftover reference photo should never reach a factory file.
Creating the layers with a script
If you set up many files, a short script saves repeated clicking. Illustrator's ExtendScript runs .jsx files from File > Scripts > Other Script.
// ExtendScript for Illustrator (.jsx): create the standard flat layers
var doc = app.activeDocument;
var names = ["Annotations", "Details", "Stitching", "Outline", "Croquis"];
for (var i = 0; i < names.length; i++) {
var layer = doc.layers.add();
layer.name = names[i];
}The script adds each new layer above the previous one. The last name in the list therefore ends up on top of the stack and Croquis on the bottom. Look at the order of names once more: it is the reverse of what you might expect. If you listed Croquis first, it would be created first and then covered by every other layer, and the stack would be upside down.
Two details to know:
- The script creates layers in addition to any that already exist. A new document begins with "Layer 1", so you will end with six layers. Rename or delete "Layer 1" afterward, or add a line such as
doc.layers[doc.layers.length - 1].remove();only after confirming that the layer is empty. - The script sets names but not colors or lock states. You can set
layer.locked = truefor Croquis after you have placed the reference image.
A full scripting treatment appears in a later chapter. For now, treat the script as a convenience, not a requirement.
Working with the layers while you draw
The structure only helps if you use it consistently. These habits keep it intact.
Draw on the right layer
New objects go on the layer that is currently active in the Layers panel, which is shown by the highlighted row and the small marker beside it. Click the layer you want before you draw. If you forget, drag the colored square at the right of the layer row, which represents the selection, up or down to move the selected object to another layer.
A faster fix is Object > Arrange > Send to Current Layer after you pick the right layer. This moves the selected objects to the active layer.
Lock what you are not editing
Lock Outline once the silhouette is final. A locked layer cannot be clicked, so you cannot nudge the outline while selecting a stitch line near it. Press Alt/Option and click the padlock of a layer to lock every other layer at once, leaving only that one editable. This is a quick way to isolate the layer you are working on.
Toggle visibility to test the drawing
Hide Stitching and Details, and check that the Outline alone reads as a clear silhouette. Then show Stitching and hide Outline to see whether the seam lines make sense by themselves. A flat in which the stitching only makes sense next to a particular outline segment often has a construction error.
Use Outline mode to find strays
Press Ctrl/Cmd + Y to switch to Outline view, which shows every path as a thin line with no stroke weight or fill. In this view, stray points and duplicated paths are easy to find. Combine it with Alt/Option-clicking the eye icon to view a single layer in outline while the others stay normal.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Stitching disappears when you fill the garment | Stitching layer is below Outline | Move Stitching above Outline in the panel |
| Cannot select a path you can see | The layer is locked, or the object is locked individually | Unlock the layer, or use **Object > Unlock All** |
| A line moves with the wrong group | Objects of different line types were grouped together | Ungroup, move each to its own layer, regroup per layer |
| Reference photo appears in the exported PDF | Croquis is locked but visible | Set the layer to Template or hide it |
| New shapes appear on the wrong layer | Wrong layer active when drawing | Select the objects and use Send to Current Layer |
| Script creates an extra empty layer | Default "Layer 1" was never removed | Delete the empty layer after running |
A note on grouping across layers
Groups in Illustrator cannot span layers. If you group a button on Details with a stitch on Stitching, Illustrator moves both objects into the same layer, usually the topmost one involved. This silently breaks your structure. Group objects only within one layer. If two parts must move together, use selection and move them as a temporary pair, or use a symbol, which a later chapter covers.
Naming and conventions
Layer names travel with the file. A factory or a colleague opening your flat should understand it without a guide. Use plain English names, keep the same names and the same order in every file, and avoid names like "Layer 7" or "copy". If your studio has a template, follow it in preference to the list here. The goal is predictability: anyone should be able to open any flat from your team and find the stitching in the same place.
For a garment with a front and a back view on one artboard, keep one set of five layers and place both views on them, side by side. Duplicating the five layers per view makes the panel long and hard to read. A single stack with views separated on the artboard is simpler to manage. If you do need per-view control, use sublayers named "Front" and "Back" inside Outline and Stitching.
Checking your structure
Before moving on, run this short check:
- Are there exactly five top-level layers, with the names and order above?
- Is each layer set to a distinct color?
- Is Croquis locked and either dimmed or set as a Template?
- Does hiding every layer except Outline show a complete, closed silhouette?
- Does the Layers panel show any objects on the wrong layer when you click through each layer in turn?
If all five pass, your file is ready for the next chapter, where you draw the outline itself with the Pen tool.
Exercise
You fill the garment body with navy and the topstitching on the hem vanishes. The Layers panel shows Outline above Stitching. Explain why this happens, and give the fix.
Show answer
Layers higher in the panel draw on top of layers below. The navy fill belongs to the Outline layer, which sits above Stitching, so it covers the stitching lines. Drag Stitching above Outline in the Layers panel. The fill then draws underneath the stitching, and the lines show again.
Exercise
You run the layer script on a new document. The panel shows six layers, and an empty "Layer 1" sits at the bottom, below Croquis. Why does this happen, and how do you deal with it?
Show answer
A new document starts with "Layer 1", and the script only adds layers, so you get the five new layers plus the original. Check that "Layer 1" is empty, then delete it, or rename it Croquis and drop that name from the script's list.
Exercise
You group a button on Details with a stitch line on Stitching so they move together. What happens to your layer structure, and what should you do instead?
Show answer
A group cannot span layers, so Illustrator moves both objects into one layer, which puts one of them on the wrong layer. Keep groups within a single layer. To move parts together, select both and move them as a temporary selection, or turn the combined part into a symbol.