Shuffle Selected Objects
Script for Adobe Illustrator
✦ Available exclusively on Patreon for Pro supporters.
ㅤ
Description
The Shuffle Selected Objects script is a powerful Adobe Illustrator automation tool that randomly rearranges the positions of selected objects on your artboard. This script is perfect for designers who want to quickly create random layouts, explore different arrangements, or add organic unpredictability to their designs.
ㅤ
Key Features
- Multiple Swap Modes: Choose between position-only shuffling or include scaling options.
- Live Preview: See changes in real-time before applying them.
- Smart Scaling: Options for proportional scaling that maintains aspect ratios.
- Non-destructive Workflow: Easy to cancel and restore original positions.
- Batch Processing: Works with any number of selected objects (minimum 2 required).
ㅤ
Installation
1. Download the Shuffle Selected Objects.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 > Shuffle Selected Objects.
ㅤ
Using the Script
ㅤ
➊ Prepare Your Objects
- Open your Illustrator document.
- Select at least 2 objects you want to shuffle.
- Run the script from the File > Scripts menu.
- The script dialog will appear with multiple options:
ㅤ

ㅤ
➋ Choose Your Swap Type
In the dialog box that appears, select one of three options:
- Position only: Objects move to new random positions but keep their original sizes.
- Position + scale to fit: Objects move and resize to exactly match their new target dimensions.
- Position + fit proportionally: Objects move and scale proportionally while maintaining aspect ratios.
ㅤ
Swap Options
🅰 Position Only: Moves objects to random positions while keeping their original sizes.

ㅤ
🅱 Position + Scale to Fit: Moves objects and resizes them to match the dimensions of their new target positions.

ㅤ
🅲 Position + Fit Proportionally: Moves objects and scales them proportionally to fit new positions while maintaining aspect ratios.

ㅤ
ㅤ
➌ Use Preview and Randomize
- Preview checkbox: Enabled by default - shows live preview of changes.
- Randomize button: Click to generate a new random arrangement.
- Hide Edges checkbox: Toggle to hide/show object outlines for cleaner preview.
ㅤ
ㅤ
➍ Apply or Cancel
Fine-tune Your Results
- With preview enabled, click Randomize multiple times until you find an arrangement you like.
- Try different swap types to see various effects.
- Use the Hide Edges option for a cleaner view of your design.
ㅤ
- Click OK to apply the current shuffle arrangement.
- Click Cancel to restore objects to their original positions.
ㅤ
This script is an excellent tool for designers looking to add controlled randomness to their workflows, whether for concept exploration, layout generation, or creative experimentation.
ㅤ
ㅤ