Move by Distance
Script for Adobe Illustrator
ㅤ
Description
Move by Distance is a powerful Adobe Illustrator script that provides precise control over moving selected objects in any direction (left, right, up, or down) by a specified distance. The script features an intuitive user interface with real-time preview capabilities, allowing you to visualize changes before applying them.
ㅤ
Key Features
- Directional Movement: Move objects in four directions (Left ←, Right →, Up ↑, Down ↓)
- Precise Distance Control: Enter exact values or use the interactive scrollbar
- Real-Time Preview: See changes live as you adjust settings
- Copy Mode: Create copies instead of moving originals, with support for multiple duplicates
- Multiple Duplicates: Generate multiple evenly-spaced copies in a single operation (1-100 copies)
- Unit-Aware: Automatically adapts to your document's ruler units (inches, cm, mm, pixels, points, picas)
- Settings Persistence: Your preferences are saved between sessions
- Keyboard Shortcuts: Use arrow keys for quick value adjustments
- Fit Selection View: Quickly zoom to fit selected objects in the viewport
ㅤ
Installation
1. Download the Move by Distance.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 > Move by Distance.
ㅤ
Alternative: You can run the script without installation by dragging and dropping the .jsx file directly onto an open Illustrator document.
ㅤ
Using the Script
ㅤ
➊ Prepare Your Document
Before running the script, ensure you have:
- An open document in Adobe Illustrator
- Objects in your document (the script won't run on an empty document)
- At least one object selected (use the Selection Tool V)
ㅤ
ㅤ
➋ Launch the Script
Run the script via File → Scripts → Move Objects (or your preferred method).
A dialog window will appear with the following sections:
ㅤ

ㅤ
ㅤ
➌ Choose Direction
In the Direction section, click one of the four directional buttons:
- ← Left – Moves objects to the left
- → Right – Moves objects to the right
- ↑ Up – Moves objects upward
- ↓ Down – Moves objects downward
ㅤ
ㅤ
➍ Set the Distance
In the Distance section, specify how far to move the objects:
ㅤ
Using the Scrollbar
- Drag the scrollbar to adjust the distance (range: 0–1000)
- Click the scrollbar arrows to increment/decrement by the current step value
- Right-click on the scrollbar to instantly reset to 0
ㅤ
Using the Input Field
- Type any numeric value directly (not limited to 0–1000)
- Use Up/Down arrow keys to adjust by the step value
- Hold Shift + arrow keys to adjust by 10× the step value
ㅤ
Understanding Units
The distance is shown in your document's current ruler units:
- in = Inches
- cm = Centimeters
- mm = Millimeters
- pt = Points
- px = Pixels
- pc = Picas
The script automatically converts your input to the correct internal values.
ㅤ
Reset Button (✖)
- Click the ✖ button next to the distance to instantly reset it to 0.
ㅤ
ㅤ
➎ Adjust Step Value (Optional)
The Step value controls the increment used when:
- Clicking scrollbar arrows
- Using keyboard arrow keys in the distance field
ㅤ
To change the step value:
- Enter a value in the Step field (default: 1)
- Use Up/Down arrow keys to adjust by ±1
- Hold Shift + arrow keys to adjust by ±10
- Click the ✖ button to reset to 1
ㅤ
ㅤ
➏ Enable Copy Mode (Optional)
Check the Copy checkbox to create copies of selected objects instead of moving the originals:
- Copy ON: Creates duplicate objects at the target distance, leaving originals in place
- Copy OFF: Moves the original objects to the new position
ㅤ
Setting Number of Duplicates
When Copy mode is enabled, you can specify how many copies to create:
- Enter a value in the Duplicates field (range: 1-100)
- Use Up/Down arrow keys to adjust the count
- Click the ✖ button to reset to 1
Note: Multiple duplicates are evenly distributed between the original position and the target distance, creating a stepped effect.
ㅤ
ㅤ
➐ Enable Preview (Recommended)
Check the Preview checkbox to see real-time changes as you adjust settings:
- Preview ON: Objects move instantly as you change direction or distance
- Preview OFF: Changes are only applied when you click OK
Tip: Preview mode helps you visualize the final result before committing.
ㅤ
ㅤ
➑ Hide Edges (Optional)
Check the Hide Edges checkbox to hide selection bounding boxes and anchor points:
- Hide Edges ON: Clearer view of your design without visual clutter
- Hide Edges OFF: Standard selection display with bounding boxes
ㅤ
ㅤ
➒ Use the Fit Selection Button
Click the ✚ (zoom) button to automatically fit selected objects in the viewport:
- Adjusts zoom level to 85% of the selection bounds
- Centers the selection in the window
- Only enabled when Preview is ON
ㅤ
ㅤ
➓ Apply or Cancel
Once satisfied with your settings:
- Click OK: Apply the movement to selected objects and close the dialog
- Click Cancel: Revert all changes and close the dialog (objects return to original positions)
Important: Your settings (direction, distance, step, preview, hide edges) are automatically saved for future sessions, regardless of whether you click OK or Cancel.
ㅤ
Keyboard Shortcuts
- Up/Down arrows in Distance field: Adjust by step value
- Shift + Up/Down arrows in Distance field: Adjust by 10× step value
- Up/Down arrows in Step field: Adjust by ±1
- Shift + Up/Down arrows in Step field: Adjust by ±10
- Right-click on scrollbar: Reset distance to 0
ㅤ
Workflow Tips
- Enable Preview first to see live updates
- Use Hide Edges for a cleaner canvas view
- Use the Fit Selection button to quickly focus on your work
- Set a custom step value for faster adjustments with large or small increments
ㅤ
ㅤ
☻ Conclusion
With Move by Distance script, you have complete control over precise object positioning in Adobe Illustrator. The combination of real-time preview, flexible input methods, and persistent settings makes it easy to achieve pixel-perfect layouts efficiently. Start experimenting with the script today to streamline your design workflow and save valuable time on repetitive positioning tasks.
ㅤ
ㅤ