Move by Distance
Script for Adobe Illustrator
ㅤ
Description
Move by Distance moves selected Illustrator artwork by an exact distance. Choose a basic direction or custom angle, preview the result on the artboard, and either move the original artwork or create multiple instances along the movement path.
ㅤ
Features
Move by Distance combines precise positioning with flexible controls for everyday layout and production work.
- Five directions: Move artwork Left, Right, Up, Down, or at a Custom angle.
- Exact distance: Enter any distance in the document's current ruler units.
- Inline calculations: Enter calculations directly in any numeric field.
- Adjustable Step: Control the size of keyboard and scrollbar adjustments.
- Custom Angle controls: Set the angle with a field, scrollbar, dial, or Vector Nudge pad.
- Move Only mode: Reposition the selected artwork without creating copies.
- Instances mode: Keep the original and create 2–100 distributed copies.
- Flexible spacing: Choose Linear, Ease In, Ease Out, or Ease Both distribution.
- Output options: Group repeated arrangements or reverse their stacking order.
- Live Preview: Review changes directly on the artboard before applying them.
- View controls: Hide selection edges or fit the result in the active window.
- Persistent settings: Reuse settings from the last successful operation.
ㅤ
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
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
Prepare the document before opening Move by Distance.
- Open an Illustrator document containing artwork.
- Select one or more objects.
- Choose File > Scripts > Move by Distance.
The script requires an open document and an active selection. Hide Edges may hide the selection outline when the dialog opens, but the artwork remains selected.
ㅤ

ㅤ
ㅤ
➊ Choose a Direction
Choose the direction in which the artwork should move.
- Left: Moves along the negative horizontal axis.
- Right: Moves along the positive horizontal axis.
- Up: Moves along the positive vertical axis.
- Down: Moves along the negative vertical axis.
- Custom: Moves at the angle set in the Custom Angle panel.
Only one direction can be active. Selecting Custom reveals the angle controls; choosing a basic direction hides them again.
ㅤ
ㅤ
➋ Set the Distance and Step
Distance controls how far the artwork moves. The panel title shows the document's current ruler unit.
- Enter a positive value to move in the selected direction.
- Enter a negative value to move in the opposite direction.
- Type a value directly or use the scrollbar for values from 0 to 5000.
- Enter calculations such as 100/2, 5*12, or (20+10)/2.
- Click the Distance reset control to return to 0.
ㅤ
Step controls the size of keyboard and scrollbar adjustments.
- Press Up or Down in the Distance field to adjust it by Step.
- Hold Shift while pressing Up or Down to adjust it by 10× Step.
- Click the Step title to reset Step to 1.
- Use a positive Step value.
ㅤ
ㅤ
➌ Configure a Custom Angle
Choose Custom to move artwork in any direction.
- Type an angle in the numeric field.
- Use the scrollbar for quick adjustments.
- Drag the circular dial to set the direction visually.
- Hold Shift while dragging the dial to snap to 15° increments.
- Enter calculations such as 360/8.
ㅤ
Angles follow Illustrator's artboard directions.
- 0°: Right.
- 90°: Up.
- 180°: Left.
- 270°: Down.
ㅤ
The Vector Nudge pad adjusts the current movement as a horizontal and vertical vector.
- Click one of the eight arrows to move the vector by Step.
- Hold Shift to move it by 10× Step.
- Drag the center horizontally to adjust Step.
- Double-click the center to reset Distance and Angle to 0.
ㅤ
ㅤ
➍ Choose Move Only or Instances
Choose how the selected artwork should be placed.
- Move Only: Moves the original artwork by the full Distance without creating copies.
- Instances: Keeps the original in place and creates 2–100 copies along the movement path.
In Instances mode, Distance defines the complete path to an imaginary endpoint. The copies are placed between the original and that endpoint. For example, two instances on a 300 px path appear at 100 px and 200 px.
ㅤ
Additional instance options control the final output.
- Instances: Sets the number of copies created for each selected object.
- Group: Keeps each repeated multi-object arrangement together.
- Reverse Stacking: Reverses the front-to-back order of overlapping copies.
- An instance count of 1 switches the script back to Move Only.
- Counts of 50 or more require confirmation before artwork is created.
ㅤ
ㅤ
➎ Choose Instance Spacing
Spacing controls how the gaps between instances change along the path.
- Linear: Uses equal gaps between every placement.
- Ease In: Starts with smaller gaps and gradually increases them.
- Ease Out: Starts with larger gaps and gradually decreases them.
- Ease Both: Uses smaller gaps near both ends and larger gaps in the middle.
The Placement panel displays the resulting interval. Linear spacing shows one value; eased spacing shows the smallest and largest gaps.
ㅤ
ㅤ
➏ Preview and View Controls
Use these controls to inspect the result before applying it.
- Preview: Shows the current movement or instances on the artboard.
- Hide Edges: Hides selection edges and the bounding box without deselecting artwork.
- Zoom: Fits the original artwork and previewed result in the active window.
Turning Preview off removes preview copies and restores the original positions. For complex artwork or high instance counts, keep Preview off while making large changes and enable it for the final check.
ㅤ
ㅤ
➐ Apply or Cancel
Finish the operation with the buttons at the bottom of the dialog.
- OK: Applies the current result and saves the settings for the next session.
- Cancel: Removes the preview and restores the artwork and view to their launch state.
- Option/Alt-click Cancel: Resets the numeric controls without closing the dialog.
- User Guide: Opens the built-in guide.
- Support: Opens the Patreon page.
ㅤ
ㅤ
➑ Keyboard Shortcuts
Use these shortcuts for faster adjustments.
- Enter or Return: Confirms the active numeric value or calculation.
- Tab or Shift+Tab: Moves through the controls.
- Up or Down: Adjusts the active numeric field by its normal increment.
- Shift+Up or Shift+Down: Uses the larger increment.
- Left or Right: Changes the selected placement mode when that control is focused.
- Arrow keys on the Nudge pad: Moves the vector by Step.
- Shift-drag on the angle dial: Snaps to 15° increments.
- Click a reset control: Restores that value to its default.
- Right-click a reset control: Restores all adjustable values.
- Escape: Cancels and closes the dialog.
ㅤ
ㅤ
➒ Settings and Persistence
Move by Distance remembers the settings from the last operation completed with OK.
- Direction and Custom Angle.
- Distance and Step.
- Move Only or Instances mode.
- Instance count and spacing.
- Grouping and stacking options.
- Preview, Hide Edges, and Zoom states.
- Dialog size and position.
Cancel and Close do not replace the saved settings. Reset controls change only the current session until OK is clicked.
ㅤ
ㅤ
☻ Summary
Move by Distance provides a clear, visual workflow for moving Illustrator artwork or creating precisely distributed instances. Its live preview, custom angles, spacing choices, and output controls make repeated placement tasks faster while keeping every change easy to review.
ㅤ
ㅤ