Proportional Spacing Adjuster

Proportional Spacing Adjuster

Script for Adobe Illustrator

ㅤ

Description

Proportional Spacing Adjuster expands or contracts the spacing between multiple selected objects in Adobe Illustrator. It moves each object proportionally from a chosen reference point while preserving every object's size.

ㅤ

Features

The script combines precise controls with direct visual feedback, making proportional spacing adjustments easy to set up and review.

  • Proportional spacing: Expand with positive percentages, contract with negative percentages, or enter 0 to keep the original spacing.
  • Flexible values: Drag the Spacing % scrollbar from -200% to 200%, or type any value, including one outside that range, in the numeric input.
  • Numeric inputs with steppers: Click, drag, or scroll the stepper on each input to nudge the value, and right-click it to reset.
  • Calculations: Enter calculations such as 100/2 or (10-3)*4 in the Spacing % input and 2+1 or 10/2 in the Count input, using +, -, *, /, and parentheses.
  • Three move directions: Adjust horizontal spacing, vertical spacing, or both at once.
  • Nine reference points: Anchor movement to a corner, edge midpoint, or the center of the selection.
  • Interactive preview: Inspect original and calculated positions, movement lines, the reference point, and adjusted bounds at the top of the dialog.
  • Direct handle control: Drag direction-aware bounding-box handles to change the percentage visually.
  • Live artwork preview: See the current result in Illustrator before applying it.
  • Duplicate creation: Add evenly spaced copies between each original and calculated target position.
  • Flexible copy counts: Use the 2-10 Count scrollbar or type a value from 2 through 100.
  • View controls: Hide selection edges, fit the original selection in the active view, and restore the opening view.

ㅤ

Installation

1. Download the Proportional Spacing Adjuster.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 > Proportional Spacing Adjuster

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 an Illustrator document containing the artwork you want to adjust, then launch Proportional Spacing Adjuster.

  1. Select at least two individual objects.
  2. Choose File > Scripts > Proportional Spacing Adjuster.
  3. Confirm that the selected objects appear in the Spacing Map at the top of the dialog.
  4. If the script reports that one group is selected, select at least two individual objects and launch it again.

ㅤ

image gallery

ㅤ

ㅤ

➊ Set the Spacing %

Spacing % controls how far each object moves relative to its original distance from the selected reference point.

  • Enter 0 to keep the original spacing.
  • Enter a positive value to move objects farther from the reference point.
  • Enter a negative value to move objects closer to the reference point.
  • Drag the ticked scrollbar, which spans the panel, to choose a value from -200% to 200%.
  • Click a scrollbar arrow for a one-unit step or click the track for a larger step.
  • Type any value in the numeric input at the right end of the row, after the reset indicator. The input shows a % suffix; type the number only. Values below -200 or above 200 are kept, and the scrollbar rests at its end.
  • Click the upper or lower half of the input's stepper to change the value by 1, or by 10 with Shift. Drag the stepper up or down, or scroll over it, to keep stepping.
  • Enter calculations using +, -, , /, and parentheses, such as 100/2, 2+34, or (2+3)*4. Decimal points, decimal commas, negative values, and scientific notation are accepted.
  • Press Enter, leave the input, or click OK to replace a calculation with its result. An incomplete or invalid entry, including division by zero, quietly restores the previous value and outlines the input in red until you edit it again; no alert interrupts you.
  • Click the reset indicator, right-click the scrollbar, or right-click the stepper to return Spacing % to 0.

ㅤ

ㅤ

➋ Choose a Direction

Direction determines which coordinates the proportional calculation can change.

  • Both: Change horizontal and vertical spacing together.
  • Horizontal: Change horizontal spacing while preserving vertical positions.
  • Vertical: Change vertical spacing while preserving horizontal positions.
  • You can also click the direction word in the Spacing Map header to cycle through the three directions.
  • Changing the direction immediately refreshes the dialog preview and, when Preview is on, the Illustrator artwork.

ㅤ

ㅤ

➌ Choose a Reference Point

Ref. Point provides a 3 x 3 selector that represents the bounds of the original selection.

  • Choose a corner to expand or contract from that side diagonally.
  • Choose an edge midpoint for a one-sided horizontal or vertical relationship.
  • Choose the center for balanced movement around the selection center.
  • Option/Alt-click the selector to return to the center point.
  • When an object occupies the chosen outer reference position, that anchor object stays still while the other objects move proportionally.

ㅤ

ㅤ

➍ Use the Interactive Preview

Spacing Map is the first panel in the dialog. It shows how the selected objects will move and provides handles for direct adjustment.

  • Outlined markers show original positions.
  • Accent markers show calculated positions.
  • Connecting lines show movement direction and distance.
  • The crosshair marks the selected reference point.
  • The header shows the current value and direction. Click the direction word to cycle through Both, Horizontal, and Vertical; Shift-click goes back.
  • The bounding box shows the adjusted selection extent.
  • Horizontal mode shows left and right handles.
  • Vertical mode shows top and bottom handles.
  • Both mode shows handles at the midpoint of all four edges.
  • Drag a visible handle to change Spacing %.
  • Hold Shift while dragging for finer control.
  • Option/Alt-click or right-click the viewport to reset Spacing % to 0.
  • The preview follows the Spacing % input as you type and keeps the last valid value while a calculation is incomplete.

ㅤ

ㅤ

➎ Copies

Copies adds intermediate copies along each object's proportional movement path.

  • Click Add Copies to enable duplicate creation.
  • Set the count with the numeric input beside the button or the ticked Count scrollbar.
  • Use the scrollbar for values from 2 through 10.
  • Type a whole number or a calculation for a result from 2 through 100.
  • A count below 2 or an invalid entry restores the previous count, and a count above 100 is corrected to 100; the input shows a red outline in both cases.
  • A typed count above 10 stays active while the scrollbar rests at its maximum position.
  • Use the input's stepper to change the count by 1, or by 10 with Shift.
  • The count includes the original object.
  • Changing Spacing %, Direction, or Ref. Point rebuilds the duplicate arrangement.
  • Turning Add Copies off removes the generated preview copies.
  • Right-click the Count scrollbar, or right-click the stepper, to reset the count to 3.

ㅤ

ㅤ

➏ Control Preview, Hide Edges, and Fit Selection

The action bar controls how the result is displayed in the Illustrator document.

  • Preview ON/OFF: Apply or suspend live artwork updates.
  • Hide Edges: Hide selection edges for a clear view, then click again to restore them.
  • Fit Selection: Fit the original selection in the active view, then click again to restore the view from when the script opened.
  • Turning Preview off restores the objects to their original positions.
  • Turn Preview on again to inspect the current settings on the artwork before confirming. OK applies them either way.

ㅤ

ㅤ

➐ Apply, Cancel, or Reset

Use the action buttons after reviewing the result.

  • OK or Enter: Commit any value still being typed, apply the current settings to the artwork, and close the dialog. This works whether Preview is on or off. The settings are remembered for the next run.
  • Cancel or Esc: Remove generated duplicates, restore the original positions, and close the dialog. Settings saved by an earlier OK stay unchanged.
  • Spacing % reset indicator or stepper right-click: Reset only Spacing % to 0.

ㅤ

ㅤ

☻ Summary

Proportional Spacing Adjuster makes it easy to expand, contract, and duplicate arrangements with precise proportional control. Select your objects, choose a direction and reference point, then refine the result with the numeric inputs, scrollbars, or interactive handles before applying it.

ㅤ

ㅤ

1 comment

  • That just rocks. Thanks!!!

    Yoda Mann -

Leave a comment

Proportional Spacing Adjuster

Version: 2.0.1

Updated:

    • 2.0.0: Redesigned the dialog with the Spacing Map at the top, a full-width Spacing % scrollbar, custom numeric inputs with steppers, extended calculation support, settings remembered between runs, clearer control names, and a Quick Tour.
    • 1.1.5: Added safe arithmetic input, retained the last valid value during incomplete entry, and made Fit Selection reversible.
    • 1.1.4: Moved Both-mode handles to the middle of each edge and replaced the duplicate icon with the clearer Add Copies control.
    • 1.1.3: Added the searchable built-in user guide with workflow, controls, version history, and support resources.
    • 1.1.2: Added the 2-10 Count scrollbar, accepted typed values up to 100, improved Count alignment, and strengthened redraw safeguards.
    • 1.1.1: Added the square-stack duplicate toggle and the expandable Copies panel.
    • 1.1.0: Added the interactive spacing viewport, direction-aware handles, cached selection geometry, and clearer single-group guidance.
    • 1.0.9: Replaced the native Spacing % scrollbar with a custom ticked control.
    • 1.0.8: Added icon-based direction controls, the compact reference selector, reset indicators, and expanded numeric input behavior.
    • 1.0.7: Replaced reference-point radio buttons with an interactive 3 x 3 picker.
    • 1.0.6: Added theme-aware custom controls and the consolidated action bar.
    • 1.0.5: Added the custom vector footer with website, User Guide, and Support links.
    • 1.0.4: Added selection-edge controls and refined the Preview workflow.
    • 1.0.3: Expanded duplicate-generation controls and Preview behavior.
    • 1.0.2: Consolidated the proportional-spacing workflow and supporting documentation.
    • 1.0.1: Refined the initial packaged release.
    • 1.0.0: Introduced Proportional Spacing Adjuster.

    ㅤ

    ㅤ

    Tested on MacOS:

    ㅤ

    • Adobe Illustrator 2023 (27.0)
    • Adobe Illustrator 2024 (28.1)
    • Adobe Illustrator 2025 (29.0)
    • Adobe Illustrator 2026 (30.8.2)
  • Supported Versions:

    • Compatible with Adobe Illustrator CS6 and later, including Adobe Illustrator CC versions.

    Operating Systems:

    • Works on both macOS and Windows platforms.
  • End User License Agreement (EULA)

    Last Updated: 21.12.2024

    ㅤ

    This End User License Agreement (“Agreement”) is a legal agreement between you (“User” or “Licensee”) and Samolevsky.com (“Licensor”) regarding the use of the Adobe Illustrator scripts (“Software”). By downloading, installing, or using the Software, you agree to be bound by the terms of this Agreement.

    ㅤ

    1. Grant of License

    Licensor grants the User a non-exclusive, non-transferable, and revocable license to use the Software in accordance with this Agreement.

    • Free Software: If the Software is provided for free, you may use it for personal or commercial purposes without payment, subject to the restrictions outlined in this Agreement.
    • Paid Software: If the Software is provided for a fee, you may use it only after payment has been made in full.

    ㅤ

    2. Usage Rights

    You are permitted to:

    • Install and use the Software on devices you own or control.
    • Use the Software in your personal or commercial projects, subject to compliance with this Agreement.

    ㅤ

    3. Restrictions

    You may NOT:

    • Reverse engineer, decompile, or otherwise attempt to discover the source code, underlying ideas, or algorithms of the Software.
    • Reuse, incorporate, or integrate any portion of the Software into any other software, product, or project, except as expressly permitted by the Licensor in writing.
    • Resell, redistribute, or share the Software, whether in its original or modified form, without prior written consent from the Licensor.
    • Claim ownership of the Software or its underlying code.
    • Use the Software in any way that violates applicable laws or regulations.

    ㅤ

    4. Ownership

    The Software and all intellectual property rights therein remain the exclusive property of the Licensor. This Agreement does not transfer ownership of the Software or any intellectual property rights to the User.

    ㅤ

    5. Disclaimer of Warranties

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    ㅤ

    6. Limitation of Liability

    To the maximum extent permitted by law, Licensor shall not be liable for any damages, including but not limited to direct, indirect, incidental, special, or consequential damages, arising out of or related to the use or inability to use the Software.

    ㅤ

    7. Termination

    This Agreement is effective until terminated. Licensor may terminate this Agreement immediately if you breach any term of this Agreement. Upon termination, you must cease all use of the Software and destroy any copies in your possession.

    ㅤ

    8. Updates and Support

    Licensor is not obligated to provide updates, support, or maintenance for the Software. However, updates may be provided at the sole discretion of the Licensor.

    ㅤ

    9. Governing Law

    This Agreement shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law principles.

    ㅤ

    10. Entire Agreement

    This Agreement constitutes the entire agreement between you and the Licensor concerning the Software and supersedes all prior or contemporaneous understandings regarding such subject matter.

    By using the Software, you acknowledge that you have read this Agreement, understand it, and agree to be bound by its terms.

    ㅤ

    For any questions or concerns regarding this Agreement, please contact us at hello@samolevsky.com

Browse More Scripts

  1. Explore Gradient Type Switcher
    Gradient Type Switcher

    Gradient Type Switcher

    Gradient Type Switcher converts gradient fills and strokes between linear and radial types in Adobe Illustrator. 

    Explore
  2. Explore Sequential Text Numbering
    Sequential Text Numbering

    Sequential Text Numbering

    Sequential Text Numbering automates numbering and labeling across selected text frames in Adobe Illustrator.

    Explore
  3. Explore Quick Resize
    Quick Resize

    Quick Resize

    Quick Resize is a floating panel for Adobe Illustrator that resizes selected objects to an exact width or height.

    Explore

Introducing ScriptBox

Your Complete Adobe Illustrator Productivity Hub

Required Software

Adobe Illustrator

Adobe Illustrator is a professional vector graphics software developed by Adobe Inc. It is widely used by designers, illustrators, and artists for creating a variety of digital artwork, including logos, icons, illustrations, typography, and complex design layouts. Illustrator is known for its precision and scalability, allowing users to create high-quality graphics that can be resized without losing clarity. Its features include powerful drawing tools, customizable brushes, advanced typography options, and seamless integration with other Adobe Creative Cloud applications. Illustrator is a go-to tool for creative professionals working on projects for print, web, and multimedia platforms.

  • 🅰 Locating the Scripts Folder

    To install a Proportional Spacing Adjuster.jsx script in Adobe Illustrator, you need to place it in the correct directory where Illustrator
can recognize it. Follow these steps to locate the Scripts folder:

    1. MacOS:
      Open Finder and navigate to:
      Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
    2. Windows:
      Open File Explorer and navigate to:
      C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
    3. Replace <Version> with your Adobe Illustrator version (e.g., 2025).
    4. Replace <Language> with your language folder (e.g., "de_DE" for German, "en_US" for English).

    ㅤ

    🅱 Installing the Script

    1. Copy the Script File: Copy the Proportional Spacing Adjuster.jsx file to the Scripts folder located in the path above.
    2. On some systems, you may need administrator permissions to modify the Scripts folder.
    3. Restart Adobe Illustrator: To refresh the scripts menu, close and reopen Adobe Illustrator.

    ㅤ

    Explore our complete guide to mastering Adobe Illustrator scripts.

    1. Open Adobe Illustrator and ensure a document is active.
    2. Go to the top menu bar and select File > Scripts.
    3. If the script is installed in the Scripts folder, it will appear in the dropdown list.
    4. Click the Proportional Spacing Adjuster script to run it.
    5. The Proportional Spacing Adjuster script will execute, and any dialog boxes or results will appear based on the script’s functionality.

    ☻ Before running any scripts, it’s strongly advised to save your work — especially when working with complex or large documents.

Got questions?

Need help or have an idea to share? We’d love to hear from you! Whether you have questions, found a bug, have a feature request, or just want to share your feedback, reach out to us—we’re here for you!