Extended Align Panel
Script for Adobe Illustrator
Extended Align Panel
ㅤ
Description
Extended Align Panel is a compact persistent palette for Adobe Illustrator that brings alignment, object distribution, and exact spacing controls into one focused interface. It combines custom-drawn controls with direct Illustrator operations while keeping the active alignment target and bounds method visible throughout the workflow.
ㅤ
Features
The panel provides fast visual access to common arrangement commands while preserving Illustrator-compatible behavior.
- Align and Distribute tabs: Switch between dedicated action groups without hiding the shared target, bounds, or footer controls.
- Compound alignment grid: Align selected artwork to any of nine corner, edge-center, or center positions.
- Single-axis alignment: Align objects to the left, horizontal center, right, top, vertical center, or bottom.
- Object distribution: Distribute objects by their horizontal or vertical edges and centers using a two-row button grid.
- Exact spacing: Distribute objects horizontally or vertically using a positive, zero, or negative spacing value.
- Linked thumbwheel: Adjust spacing by dragging a full-width ribbed thumbwheel or using the mouse wheel.
- Spacing reset: Return the spacing value to zero with one click; the reset button is dimmed when no reset is needed.
- Alignment targets: Choose Artboard, Selection, or Key Object directly from the palette.
- Bounds modes: Switch between Visible Bounds and Geometric Bounds, including clipping-path-aware handling for clipped artwork.
- Persistent preferences: Retain the alignment target, bounds mode, spacing value, and palette position between launches.
ㅤ
Installation
1. Download the Extended Align Panel.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator (Version)/Presets/(Language)/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator (Version)\Presets(Language)\Scripts
3. Restart Adobe Illustrator if it's already running
4. Access the script via File > Scripts > Extended Align Panel
5. Alternatively, run it directly via File > Scripts > Other Script... and browse to the file location
Tip: You can also drag and drop the .jsx file directly onto the Illustrator workspace to run the script instantly – no installation needed.
ㅤ
Using the Script
ㅤ
Launch the Script
Open Extended Align Panel from File > Scripts. The persistent palette remains available while you continue working in Illustrator.
- If no document is open, the panel displays a reminder to open one.
- If no artwork is selected, the panel prompts you to select objects and activates Illustrator’s Selection tool when possible.
- Press Escape whenever you want to close the palette.
ㅤ
ㅤ
➊ Select Artwork
Select the artwork you want to align or distribute before choosing an action.
- Select one object when aligning it to the active artboard.
- Select two or more objects for selection-based alignment.
- Select two or more objects for object distribution or fixed spacing.
- Unlock any objects and layers that must move.
- Clipped groups use their clipping path when bounds are calculated.
ㅤ
ㅤ
➋ Choose an Align To Target
Use the persistent Align To selector above the action tabs. The selected target applies to commands from both tabs.
- Artboard: Uses the active artboard as the reference. Press 1 to select it from the keyboard.
- Selection: Uses the combined bounds of the selected artwork. Press 2 to select it.
- Key Object: Uses Illustrator’s native key-object state. Press 3 to select this mode.
For Key Object alignment, select all participating objects and click the intended reference object once more in Illustrator. ExtendScript cannot reliably designate the native key object itself, so the final reference-object click must be made in the document.
ㅤ
ㅤ
➌ Choose a Bounds Mode
The Bounds selector remains available below the tabbed controls.
- Visible: Includes strokes and appearance extents when determining object bounds.
- Geometric: Uses the underlying path geometry without stroke width.
- Active indicator: A checkmark and accent highlight identify the current bounds mode.
The selected bounds mode is remembered between launches and applies to alignment and distribution calculations.
ㅤ
ㅤ
➍ Choose an Action Tab
Use the custom tab bar to switch between Align and Distribute controls.
- Align: Displays compound and single-axis alignment buttons with a blue primary accent.
- Distribute: Displays object-distribution and exact-spacing controls with a green primary accent.
Switching tabs does not change the active Align To target, bounds mode, spacing value, or selected artwork.
ㅤ
ㅤ
➎ Align Objects
The Align tab contains two control panels.
- Align Objects: The three-by-three grid combines horizontal and vertical alignment in one click.
- Top row: Align Top Left, Align Top Center, and Align Top Right.
- Middle row: Align Middle Left, Align Center, and Align Middle Right.
- Bottom row: Align Bottom Left, Align Bottom Center, and Align Bottom Right.
- Axis controls: Align Left, Horizontal Center, Right, Top, Vertical Center, or Bottom independently.
An action executes on mouse-up only when the pointer remains inside its button, reducing accidental commands and stuck pressed states.
ㅤ
ㅤ
➏ Distribute Objects
Open the Distribute tab and use the two-by-three Distribute Objects grid.
- First row: Distribute Top Edges, Vertical Centers, and Bottom Edges.
- Second row: Distribute Left Edges, Horizontal Centers, and Right Edges.
- Artboard target: Uses the active artboard as the distribution reference.
- Selection target: Uses the selected artwork’s combined bounds.
At least two valid selected objects are required. Distribution is calculated with the active Visible or Geometric bounds preference.
ㅤ
ㅤ
➐ Set Exact Distribution Spacing
The Distribute Spacing panel combines action buttons, a numeric field, a reset button, and a linked thumbwheel.
- Enter the required pixel value in the numeric field.
- Use a positive value to create a gap between objects.
- Use zero to place neighboring bounds directly against one another.
- Use a negative value to overlap neighboring objects.
- Click the horizontal-spacing button to distribute from left to right.
- Click the vertical-spacing button to distribute from top to bottom.
- Click the reset button to restore zero spacing.
- Drag the thumbwheel horizontally to adjust the value continuously.
- Use the mouse wheel over the thumbwheel to change the value by individual steps.
- Double-click the thumbwheel to reset the value to zero.
The numeric field and thumbwheel remain synchronized. Invalid numeric entries display an alert and restore the previous valid value.
ㅤ
ㅤ
➑ Use Keyboard and Modifier Controls
Keyboard shortcuts provide quick access without replacing normal text-field editing.
- Numpad 7, 8, 9: Align to the top-left, top-center, or top-right position.
- Numpad 4, 5, 6: Align to the middle-left, center, or middle-right position.
- Numpad 1, 2, 3: Align to the bottom-left, bottom-center, or bottom-right position.
- Number 1, 2, 3: Switch the target to Artboard, Selection, or Key Object.
- Up or Down in the spacing field: Increase or decrease the value by 1.
- Shift with Up or Down: Increase or decrease the value by 10.
- Cmd or Ctrl with Up or Down: Increase or decrease the value by 0.1.
- Shift while dragging the thumbwheel: Adjust by 10 per pixel.
- Option, Cmd, or Ctrl while dragging the thumbwheel: Adjust by 0.1 per pixel.
- Escape: Close the palette.
The palette ignores global alignment shortcuts while the numeric field is active, allowing normal value editing.
ㅤ
ㅤ
➒ Use Shared Controls and Footer Links
The Align To selector, Bounds selector, and footer remain available regardless of the active action tab.
- Guide: Opens the Extended Align online user guide.
- Support: Opens the Samolevsky Patreon page.
- Logo: Opens samolevsky.com.
- Theme refresh: Updates custom-drawn colors when Illustrator’s interface brightness changes while the palette is open.
- Saved state: Restores the last target, bounds mode, spacing value, and valid on-screen palette position.
ㅤ
ㅤ
☻ Wrap-Up
Extended Align Panel keeps alignment targets, bounds preferences, object distribution, and exact spacing in one compact Illustrator palette. Its tabbed workflow, shortcuts, persistent settings, and linked thumbwheel help make repetitive arrangement work faster while preserving precise control.
ㅤ
ㅤ
1 comment
this script not working with Illustrator CC 2018..