This script allows us to calculate Roundness value using circular paths on the Illustrator.
The roundness is one of the useful parameters for grain shapes. The definition is extremely simple as below.
where
red: maximum inscribed circle
orange: corner concaveture
green: small circles that fits in the corner concaveture
Put the "RoundnessForAI.js" on the below folder.
- Windows(case of Japanese version)
- C:\Program Files\Adobe\Adobe Illustrator 2023\Presets\ja_JP\script
After restart Illustrator, you can use the script from Files>>Scripts>>RoundnessForAI.
- Mac(case of Japanese version; unconfirmed)
- Adobe Illustrator[version]/Presets/ja_JP/script
You can use this script more simply by registering this as an action.
- Create a new action from the footer icon of the action panel.
- After stopping the action recoding, chose a insert menu item from the upper right config icon of the action panel.
- Search for a item "RoundnessForAI" using keywords "roundness".
- This script will be resistered in the action.
- Draw a maximum inscribed circle and small circles that fits the corners of the particle outline.
- Select the circular paths to be used in the roundness calculation.
- Run this script from "Files>>Scripts>>RoundnessForAI" or resistered action.
- The calculated roundness value is displayed in the pop-up window and drawn as the text form on the canvas.
- Windows11
- Adobe Illustrator 27.9(64bit)


