This Adobe Illustrator script creates bounding rectangles around each line of a selected text frame. It's useful for quickly writing up some text, and visualising it in a neat layout.
- Generates a separate rectangle for each line of text.
- Adjusts rectangle width based on the number of characters in the line.
- Sets default colour based on the text colour.
- Skips empty lines (e.g., line breaks between paragraphs).
- Adjusts the starting position of the rectangle based on leading whitespace.
- Creates rounded rectangles for a visually appealing representation.
Note
It is advised to use a monospaced font to ensure accurate bounding rectangle dimensions.
- Open an Adobe Illustrator project.
- Select the text frame you want to create bounding rectangles for.
- Run this script (
File > Scripts > Other Script...
) and select this script file. - Enjoy!
Feel free to fork this repo and submit pull requests for any enhancements!