After Effects script to isolate selected layers by hiding all others using the shy switch, instantly decluttering your timeline.
IsolateLayers creates a clean, focused timeline by:
- Makes all unselected layers shy (hides them)
- Keeps selected layers visible (removes shy from them)
- Enables master shy switch to hide the shy layers
- Single undo reverts everything
Perfect for focusing on specific layers without the distraction of a cluttered timeline.
-
Copy
IsolateLayers.jsxto your After Effects Scripts folder:Windows: C:\Program Files\Adobe\Adobe After Effects [version]\Support Files\Scripts\ macOS: /Applications/Adobe After Effects [version]/Scripts/ -
Restart After Effects
- Select the layers you want to work with (the ones you want to keep visible)
- Run File → Scripts → IsolateLayers.jsx
- Timeline is now clean - only your selected layers are visible
- Toggle master shy switch (🙈 button) to show/hide all layers again
- Select character layers, hide everything else
- Focus on specific animation elements
- Hide background layers when working on foreground
- Isolate effect layers for fine-tuning
- Show only relevant layers for presentation
- Hide work-in-progress elements
- Isolate problematic layers
- Focus on specific layer interactions
- Instant declutter - one click to clean timeline
- Smart toggle - selected layers stay visible, others hidden
- Master shy enabled - automatically activates shy layer hiding
- Undo support - single undo brings back full timeline
- Non-destructive - doesn't delete or disable layers
Before running:
✅ Layer 1 (selected - will stay visible)
❌ Layer 2 (unselected - will be hidden)
❌ Layer 3 (unselected - will be hidden)
✅ Layer 4 (selected - will stay visible)
❌ Layer 5 (unselected - will be hidden)
After running:
✅ Layer 1 (visible)
✅ Layer 4 (visible)
(Layers 2, 3, 5 are shy/hidden)
- Select nothing = hides ALL layers (useful for starting fresh)
- Select everything = shows ALL layers (removes all shy switches)
- Master shy button = toggle to temporarily show hidden layers
- Assign hotkey = for instant timeline decluttering
- Adobe After Effects (any version with scripting support)
- Active composition with layers
Assign this script to a hotkey like Shift+H for instant "hide others" functionality.
MIT