Free Adobe Illustrator Script - Resize Whole to Size
🔧 Illustrator Script – Scale Groups by Multiple Reference Objects (FREE)
Resize grouped objects based on nearby reference rectangles – quick, clean, and automatic!
If you're working with multiple grouped objects that each need to match the size of different reference objects, this script will save you a tonne of time. It scales each group proportionally based on its nearest reference rectangle – no manual resizing, no faff.
⚠️ REQUIRED:
This script requires the fantastic Bounding Boxer script
You’ll need to run Bounding Boxer first before using this script, or it won’t behave correctly.
đź’ˇ What It Does:
âś… Detects proper rectangles in your selection to use as reference sizes
âś… Finds grouped objects with at least one perfect rectangle
âś… Matches each group with the closest reference rectangle
âś… Resizes the full group based on rectangle width
âś… Helps you automate bulk resizing like a champ
đź§° Great for:
– Resizing mockup elements
– UI component scaling
– Cleaning up varied artwork
– Batch resizing with minimal effort
📦 File Info:
-
File Type:
.jsx
(Adobe Illustrator Script) - Price: Completely free
- Compatibility: Works best when groups contain at least one closed, four-point rectangle with no curves
- Dependency: Bounding Boxer (run this first!)
đź”§ How to Install & Use the Script in Illustrator:
- Download this script (
.jsx
file) and place it in:[Your OS User Folder]/Adobe Illustrator [Version]/en_GB/Presets/Scripts/
For example:-
Windows:
C:\Users\[YourName]\AppData\Roaming\Adobe\Adobe Illustrator [version]\en_GB\Presets\Scripts\
-
Mac:
~/Library/Preferences/Adobe Illustrator [version]/en_GB/Presets/Scripts/
-
Windows:
-
Restart Illustrator.
Scripts won’t show up until you’ve relaunched the app. - Open your document and select:
- One or more proper rectangles (used as references)
- One or more grouped objects that contain a proper rectangle inside
- Go to
File > Scripts > [Your Script Name]
to run it - Done! The groups will scale proportionally based on the nearest reference rectangle.
Check this video for quick tutorial:
If this script helped streamline your workflow, consider dropping a like or sharing it with your fellow designers. Feedback always welcome!