Adobe InDesign · Windows overlay

Smart Layers

A layer palette that comes to your cursor. Press a shortcut, and the whole layer stack appears under the mouse: scroll it, drag layers around, send objects where they belong, and it disappears the moment you move away.

Runs on Windows · AutoHotkey v1.1 Talks to InDesign via ExtendScript macOS reduced fallback

The palette

Everything the Layers panel does, within reach of the hand already on the mouse.

Hold Ctrl+Alt and roll the wheel anywhere in InDesign. The card opens with the cursor resting on its header, so the wheel and every button are live immediately — no travelling across the screen to a docked panel. It closes as soon as the mouse leaves it, unless you pin it.

LAYERS GUIDES TOP CONTENT PRICE PHOTO
The current layer sits in a glowing frame. PRICE is locked, PHOTO is hidden, and the blue tick on the left edge of CONTENT marks the layer the selected objects are actually on.

Anatomy of a row

Seven things per layer, all of them live.

PHOTO 3 / 358 SHOW / HIDE LOCK COLOUR BAR COUNTS LAYER COLOUR SELECTION LAYER NAME
Click the eye to show or hide, the padlock to lock, the colour bar to select everything on the layer, the name to send your objects here, and the swatch on the right to pick another layer colour. The numbers say how much the layer holds, and the white square at the very end appears when part of your selection is sitting on this layer. The two icon slots are always there — only their colour changes — so the name never shifts around as you lock and unlock things.
  • EyeBright when the layer is visible, dim when hidden. Click to toggle, Alt+click to isolate.
  • PadlockAmber when locked, pale when not. Click to toggle, Alt+click to invert every layer.
  • Colour barThe layer colour from InDesign's own Layers panel. Click it to select everything on that layer, Shift+click to add it to the selection.
  • NameClick to send the selected objects here. Drag to reorder the layer.
  • SwatchClick it to pick a different layer colour from the full InDesign palette.
  • CountsHow many objects the layer holds: on the spread you are looking at, then in the whole document, masters included. The second number only appears when it differs from the first. Counted the way a selection sees the page — a group is one object, a frame with a placed graphic is one, and anchored objects belong to their text frame. Click to select them. They can be switched off in Settings, which also stops the counting and makes the card quicker on a long document.
  • Selection markerThe small white square at the very end, black in the light theme: some of what is selected sits on this layer. Unlike InDesign’s own dot it appears on every layer holding part of the selection, not just one. Click it to select everything on that layer.

The right click menu

Right click any row for the things that belong to that one layer — Rename, Delete layer, Select all objects on this layer — and, when more than one layer is ticked, Merge them. Underneath sit the three tools that work on the whole stack: Sort objects into layers, Layer templates and Visibility sets, so you can reach them without going up to the menu.

Controls

The wheel browses; holding Shift is what actually moves your artwork. Nothing in the document changes until you ask for it.

Opening it

InputWhat happens
Ctrl+Alt+Wheel Opens the card at the cursor. It only opens — nothing in the document moves.

On the card

InputWhat happens
WheelScrolls through the layer stack. The document is untouched; the name in the middle turns blue to say your objects are elsewhere.
Shift+WheelMoves the selected objects one layer up or down, and the card follows them.
Click a nameSends the selected objects to that layer. With nothing selected it makes that layer active instead, so the next object you draw lands there.
Click the colour barSelects everything sitting on that layer, on the spread you are looking at.
Shift+click the colour barAdds those objects to what is already selected, so you can gather objects from several layers.
Drag a nameReorders the layer. Drag to the top or bottom edge and the list scrolls along.
Ctrl+click a nameAdds or removes that layer from the selection.
Shift+click a nameSelects a whole range of layers.
Click the eye or padlockToggles it. If that row is part of a multi-selection, the whole selection follows.
Alt+click the eyeIsolates the layer — shows only this one. Do it again to bring everything back.
Alt+click the padlockInverts the locks on every layer.
Click the swatchOpens the InDesign colour palette for that layer.
Click the countsSelects the objects that layer holds on this spread, the same as the colour bar.
Click the selection markerThe white square at the end of a row: selects everything on that layer.
Right click a rowRename, delete or select that layer’s objects; merge, when several layers are ticked; and the sort, templates and visibility sets.
Alt+click the +Adds a layer with no questions: the next free name and the first palette colour no layer is wearing.
Type in the filter boxNarrows the list to layers whose name contains what you typed. Esc clears it.
Drag the headerMoves the card. Drag the bottom edge to make it taller — the height is remembered.
Move the mouse awayCloses it, unless the pin is on.
Rest on anything for two secondsA tooltip says what that control does. It waits, so it never jumps out while you are just passing over.

Locked layers are jumped over InDesign refuses to move objects into a locked layer, so instead of stopping there, scrolling lands on the nearest unlocked layer beyond it. A locked layer never blocks your way — it just cannot be a destination.

States

The card tells you what it is about to do before you commit.

BROWSING TOP CONTENT PRICE 3 LAYERS SELECTED PHOTO PRICE CONTENT DROPPING HERE GUIDES TOP CONTENT
Blue means you have scrolled away from your objects. A pale fill marks the layers you have picked for a bulk action. A green line shows exactly where a dragged layer will land.

Layer templates

The layer structure you use on every job, rebuilt in one click.

A template is a list of layer names and colours, top to bottom. Apply it to a document and the layers appear in that order, in those colours. Layers that already exist are reused rather than duplicated, so running a template twice is harmless — and on a fresh document the single empty default layer is recycled as the bottom one instead of being left behind.

Build one in the editor, or take a document you have already set up and save its structure with Save current layers as template. Templates are shared by every document.

Template name: Flyer Layers, top one first: Layer Color GUIDESViolet TOPGreen CONTENTLight Gray PRICEBlue PHOTORed BACKGROUNDLight Blue Layer: Light Blue Add Remove Up Down Save Cancel
The template editor. The list is the finished layer stack, top layer first, and every row carries the colour the layer will get.

Example A flyer template of GUIDES, TOP, CONTENT, PRICE, PHOTO and BACKGROUND, each in its own colour, turns the first minute of every new job into one menu click.

Visibility sets

Snapshots of what is shown and what is hidden.

Set the document up the way you want to see it, then save that state under a name. Restoring it later puts every layer back. Sets are matched by layer name, so they keep working after layers are reordered or new ones are added — anything the set does not mention is left alone.

Save current state... Print Client preview German version Delete a set...
Saved states of the current document. Click one and every layer goes back to how it looked when you saved it.

Unlike templates, sets belong to the document they were made in, which is what you want for print-versus-preview or language variants of the same job.

Sorting objects by type

Hand a messy document a structure without touching a single frame by hand.

Two ways round it. Either you say where each kind of object belongs and nothing else happens, or you let it make the layers and work out the order between them by itself. The switch at the top of the dialog picks which.

The sort dialog: the mode switch at the top, then the scope, four object style rules, and a target layer for each kind of object and each kind of group.
The dialog does not block InDesign. Leave it open, go and click an object to see which object style it carries, then come back — Refresh picks up any layer or style you made in the meantime without losing what you have already filled in.

Let me choose the layers

Nothing is created and nothing moves unless you ask. Anything left on leave where it is is not touched at all, which makes it safe to sort just the photos today and come back for the rest tomorrow.

By object style

Four rules sit above the table: object style → layer. They are checked first, before anything is judged by its type, because a style is a decision you made and a type is only an observation. If your price boxes carry the object style cena, one rule files every one of them onto CENY, whatever they happen to be made of.

By type

What decides is the file extension of the placed graphic, not the class InDesign reports. That matters: InDesign calls a placed .ai a PDF, and a .psd and a .tif plain images, so going by class alone cannot tell apart the things you tell apart at a glance.

CategoryWhat lands in it
TextText frames
Imagejpg png tif psd gif webp bmp
Vectorai eps pdf svg
InDesignindd idms idml placed as artwork
EmbeddedA graphic with no link — pasted or embedded, so there is no file name to go by
ShapeRectangles, ovals and polygons with nothing placed in them
LineGraphic lines and open paths
OtherForm fields, media, HTML items, legacy types

Groups

Groups are never broken up. A group moves as one thing, so instead of one Group row there are eight, and a group is filed by what it carries — looked at all the way down, through nested groups as well.

A group of…Typically
only imagesA photo composite
only vectorsA logo, an icon set
images + vectorsA photo with a logo dropped on it
only textA stacked heading and subheading
text + imagesA product with its name
text + vectorsA price box, a flash
text + images + vectorsA whole product block
anything elseNothing but shapes and lines — a rule box, a frame

Do it for me

Everything else greys out, because there is nothing left for you to set. It makes the layers it needs — TEXT, VECTORS, IMAGES, GROUPS, SHAPES, LINES, OTHER — and only the ones something actually turned up for. A layer of that name already in the document is reused, not duplicated.

The interesting part is the order it puts them in. Grouping objects by type must break some overlaps: if a caption sits above photo A and below photo B, and both photos end up on one layer, one of the two has to give. So instead of guessing, it measures the document — for every pair of overlapping objects on a spread it notes which kind was on top — and then tries all 5040 arrangements of the seven layers and keeps the one that breaks the fewest overlaps. Exact, not a guess. Where the measurements tie, it falls back to the order a person would have drawn: text on top, then vectors, images, shapes, and the rest underneath.

Only objects on the same spread can overlap, so the comparison stays inside a spread. On a catalogue the all-pairs version would run for minutes and reach the same answer.

Scope, and objects beside the pages

Selected objects carries a live count, and it keeps looking while the dialog is open — select something in InDesign now and the number follows. Scraps and old versions usually live on the pasteboard, and filing them into production layers helps nobody, so they are left alone unless you tick Also the pasteboard. That tick applies to the whole-document scope: when you select objects yourself, everything you selected is processed, pasteboard or not.

What happens to stacking

The front-to-back order is read before anything moves, and inside every target layer the objects are laid down back to front, so their order relative to each other survives intact. What does change is what follows from the order of the layers themselves: an object sent to a lower layer ends up behind the ones above it. That is the point of sorting, and it is the only thing that shifts.

Objects anchored in text move with their frame, and objects inside a group move with the group. Neither is filed on its own — that would break the layout rather than tidy it.

It says how it went A big job puts a progress bar on screen — small ones are done before a window would be worth opening. While it is reading and measuring, nothing in the document has changed yet, so Esc can call the whole thing off. Automatic mode also reports the order it settled on and how many overlaps it could not save.

It asks before it starts Locked layers and locked objects cannot be moved and would silently be left behind, so the first thing you see is a question: unlock everything first, sort anyway, or cancel. The whole sort — the layers it creates included — is one undo step either way.

Settings

One dialog, everything in view.

The Settings dialog: theme, palette size, number of rows, the name new layers get, a switch for the object counts, and buttons for export, import and the data folder.
Theme and size take effect the moment you pick them, so you can judge the card while it is right there behind the dialog. Everything else is written when you press OK.
  • ThemeDark or light. The dialog repaints itself along with the card, so you see the whole thing in the new colours at once.
  • Palette size100 % to 200 %. Everything scales together — see Size on big screens.
  • RowsHow many layers the card shows, 3 to 25. The same thing as dragging the bottom edge, for when you want an exact number.
  • New layersThe word new layers are named after. Type vrstva and they become vrstva 1, vrstva 2… The line underneath spells out what you will get as you type.
  • Show the object countsThe two numbers on every row. Switching them off does more than hide them: the document is never asked for the counts at all, which is the slowest part of a refresh on a long catalogue.
  • Export / ImportTemplates, visibility sets and these settings, in one text file — see Taking it with you.
  • Data folderOpens the folder where all of it lives, next to the script.

The number is the first free one Not a count of the layers. Delete the second of three and you would be offered a name that is still taken, so it looks for the first <name> N the document has not used. Alt+click on the + uses it straight away, together with the first palette colour no layer is wearing.

Themes

Dark by default, light for the people who work that way.

Both live in Menu → Settings, together with the size. Pick one and the card repaints at once — and so does the Settings dialog itself, so you are never left judging a new theme through a window still wearing the old one.

LAYERS TOP CONTENT PRICE
Dark
LAYERS TOP CONTENT PRICE
Light

Settings → Theme. The choice is remembered, and the dialogs follow it too, so the whole thing stays one piece.

Size on big screens

A card sized for a laptop turns into a postage stamp on a 4K or 6K screen. Settings → Palette size scales the whole thing to 120, 140, 160, 180 or 200 percent — text, icons, swatches and spacing together, so it stays proportional. It takes effect the moment you pick it, so you can see what you are choosing, and it is remembered like the theme.

Installing

One folder, one script to run.

Windows

Keep every file of the package together in one folder. Install AutoHotkey v1.1, then run Smart_layers.ahk — an icon appears in the tray. Put a shortcut to it in your Startup folder if you want it there every morning. (Compiled to an .exe it runs without AutoHotkey installed, but the package ships the script.)

Open InDesign, select something, hold Ctrl+Alt and roll the wheel once. Run only one copy at a time — two of them would fight over the same shortcut.

macOS

AutoHotkey does not exist on macOS, so the overlay is drawn by InDesign itself. Copy the folder into the Scripts Panel folder, then assign shortcuts in Edit → Keyboard Shortcuts with the Product Area set to Scripts, to Layer UP.jsx and Layer DOWN.jsx.

You get moving, clicking and the lock markers. Wheel browsing, dragging, the filter and the menu are Windows only — they belong to the overlay, not the document side.

Files & data

Two halves: one draws, the other talks to InDesign.

The overlay handles the shortcut and paints the card. Every actual change to the document is done by a small ExtendScript launcher, all of which share one core file. The two halves pass state through a temp file, which is why scrolling and selecting feel instant — the whole layer list is fetched once and then lives in the overlay.

Smart_layers.ahk
The overlay: shortcut, drawing, menus, dialogs
_layerhud_core.jsx
All the document logic, shared by every launcher
Layer UP.jsx · Layer DOWN.jsx
The two scripts you can also bind directly in InDesign
_layerhud_*.jsx
One small launcher per action — move, lock, reorder, template, sort…
data/
Everything the palette needs and everything it saves: the launchers in data/jsx, plus templates, visibility sets, colour swatches and preferences

Taking it with you

Settings → Export writes your templates, sets and preferences into a single text file; import reads it back and tells you what it found before it does anything. That is the way to move a setup to another machine, or to hand your layer structure to a colleague.

Troubleshooting

SymptomFix
Nothing opensThe tray icon has to be running and InDesign has to be the active window, with a document open.
“InDesign is not responding (COM)”With several versions installed, set indesignProgId in the config to yours, for example InDesign.Application.2026.
Icons show as empty boxesYour Windows is missing the icon font. Switch iconFont to Segoe UI Emoji and use the emoji glyphs noted beside it.
The card closes too easilyRaise mouseTolerance, or turn the pin on while you work.
Shift + wheel does nothingEvery layer in that direction is locked, so there is nowhere to go.

Everything else worth changing — sizes, colours, fonts, timings, which gestures are on — sits in the configuration block at the top of the script, in plain English with a comment on each line.