Skip to content

Latest commit

 

History

History
executable file
·
145 lines (99 loc) · 7.79 KB

File metadata and controls

executable file
·
145 lines (99 loc) · 7.79 KB

Logo

Draw | Adobe Illustrator Scripts

GitHub stars GitHub forks Downloads Telegram Youtube

Back to homepage

How to download one script

  1. In the script description, click the "Direct Link" button
  2. The tab will open the script code
  3. Press Cmd/Ctrl + S for download
  4. If you see ".jsx.txt" in the name when saving, delete ".txt"

Scripts

DrawPathBySelectedPoints

Direct Download

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).

DrawPathBySelectedPoints

DrawPolyline

Direct Download

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

  1. 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.
  2. Enter the desired parameters in the script window.
  3. 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],
];

More about script

DrawPolyline

DrawRectanglesByArtboards

Direct Download

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

DrawRectanglesByArtboards

NumeratesPoints

Direct Download

Numerates selected points and marks them with colored circles.

NumeratesPoints

RandomScribble

Direct Download

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.

RandomScribble

TriangleMaker

Direct Download

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.

TriangleMaker

Donate

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.

🤝 Contribute

Found a bug? Please submit a new issues on GitHub.

✉️ Contact

Email hi@sergosokin.ru
Telegram @sergosokin

📝 License

All scripts is licensed under the MIT licence.
See the included LICENSE file for more details.