ai_addShape
Draw vector shapes such as rectangles, ellipses, polygons, stars, lines, or paths in Illustrator by specifying position, size, fill, stroke, opacity, and layer.
Instructions
Illustrator: draw rect, roundedRect, ellipse, polygon, star, line or path (points [[x,y],...]) at position [x,y] (top-left of the shape, artboard coords) with size [w,h], fill/stroke hex (or "none"), strokeWidth, opacity, name, layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| name | No | ||
| size | No | ||
| layer | No | ||
| shape | Yes | ||
| sides | No | ||
| closed | No | ||
| points | No | ||
| stroke | No | ||
| opacity | No | ||
| document | No | Document name; omit for the active document. | |
| position | No | ||
| strokeWidth | No | ||
| cornerRadius | No |