- In the script description, click the "Direct Link" button
- The tab will open the script code
- Press Cmd/Ctrl + S for download
- If you see ".jsx.txt" in the name when saving, delete ".txt"
- DrawPathBySelectedPoints
v0.1 — 10.03.2023 - DrawPolyline
v0.1 — new, 31.03.2026 - DrawRectanglesByArtboards
v0.4 — upd, 19.02.2026 - NumeratesPoints
v0.3.3 — upd, 22.12.2022 - RandomScribble
v0.1.3 — upd, 09.02.2024 - TriangleMaker
v0.2 — new, 31.03.2025
Draws a polygon based on the selected points. To avoid self-intersections, the script sorts the selected points by polar coordinates from the geometric center of the shape with vertices in points. This is how the drawing direction of the polygon is formed.
The parameter in the `isClose' code is used to close the polygon (true) or keep the first and last point (false).
Creates polylines using straight and arc segments. Covers the basic needs for drawing technical diagrams, architectural plans, and packaging die-line.
- Line mode: creates straight segments based on length, angle, or X/Y offset.
- Arc mode: creates arcs based on radius, chord, length, and other parameters.
How it works
- Select an endpoint of a path, or multiple points. If nothing is selected, a new line will appear at the center of the Illustrator window.
- Enter the desired parameters in the script window.
- Click Add — segments will be added one after another.
// Preset custom angles for buttons
var ANGLE_PRESETS = [
[90, 180, 270, 360],
[45, 90, 135, 180],
[30, 60, 90, 120],
[15, 30, 45, 60],
[10, 20, 30, 40],
[5, 10, 15, 20],
];Draws rectangles to the size of the artboards. In the Custom option, you can enter ranges of artboard numbers with commas and hyphens. If the document is saved with bleed settings, the bleed fields will default to this value.
Code parameters:
layer: 'Rectangles'— the layer name for the New Layer option,isLower: false— draw below (true) or above (false) other objects
Numerates selected points and marks them with colored circles.
Creates random paths with a specified number of points. These can be random straight lines from 2 points or complex shapes that imitate scribbles. The points do not go beyond the bounds of the active artboard. If many shapes are first selected in the document, the script will generate individual paths with points into their bounding box.
Creates a triangle of a given size by sides and angles at the center of the screen or from a selected anchor point. Calculates the length of the three sides and angles in degrees. Optionally, display triangle dimensions in text near the triangle — Add Triangle Data As Text.
Code parameters:
rgb: [0, 0, 0]— triangle fill color for RGB documents,cmyk: [0, 0, 0, 100]— fill color for CMYK documents.
Many scripts are free to download thanks to user support. Help me to develop new scripts and update existing ones by supporting my work with any amount via Buymeacoffee USD, CloudTips RUB, ЮMoney RUB, Tinkoff RUB, Donatty RUB, DonatePay RUB. Thank you.
Found a bug? Please submit a new issues on GitHub.
Email hi@sergosokin.ru
Telegram @sergosokin
All scripts is licensed under the MIT licence.
See the included LICENSE file for more details.






