Questions tagged [illustrator-scripting]

Questions about the automation and extending of functionality through the use of scripts within Adobe Illustrator.

Filter by
Sorted by
Tagged with
30
votes
15answers
206k views

How to set the rotation point and use Transform Each in Illustrator?

I have a triangle I'm trying to rotate in Illustrator using the Object->Transform->Transform Each command, but I can't figure out how to set the rotation point like I can if I just use Free ...
26
votes
4answers
58k views

Convert text to paragraph text in Illustrator

Is there any quick way to convert text created at point (automatically resizable boundaries) to a area (paragraph) text (with fixed boundaries) in Illustrator CS3?
17
votes
5answers
7k views

Programmatically creating radiating rows of dots

I want to create a speaker hole pattern like this: But I'm not sure where to start. Can this be achieved without laborious positioning in Illustrator or similar software?
15
votes
2answers
82k views

How to export Illustrator layers as individual images?

I have an Illustrator file that contains patterns. I'd like to export each pattern as an individual image to use in this new program that I'm trying called Sketch. Is there a batch processing script ...
12
votes
6answers
4k views

How to repeat a gradient multiple times in Illustrator and Photoshop?

How to repeat a gradient 'n' times, for example, repeating black to white gradient 5 times (along the path of stroke) like I've done manually in below example image. Is there a way to automate it to ...
12
votes
4answers
12k views

How to set keyboard shortcut to run script in Illustrator

Is there a way to setup a keyboard shortcut to run a custom script in Illustrator? So far I haven't found a way. If this is not possible to do from within Illustrator, is there a 3rd party solution ...
11
votes
6answers
87k views

How can I create a tight spiral shape? (Archimedean spiral)

I'm trying to create something similar to this example: What tool should I use, or is it just squares and circles attached together? Great if you know a tutorial for this effect.
9
votes
4answers
17k views

Replacing multiple objects with other objects in Illustrator

I am working in Illustrator CS5. I want to select 100 objects (circles) and replace each of them with a 100 other various objects, each circle being replaced by one of the various objects, keeping the ...
8
votes
1answer
1k views

Script to automatically snap all points to grid in Adobe Illustrator?

How would you write a script to move all points of all selected paths to the nearest (non-pixel grid) grid point? e.g. I want all of the points of each polygon/path to snap to the nearest point on a ...
7
votes
4answers
27k views

Illustrator Script to Release All Clipping Masks & Groupings, Etc

Is there a script available for Illustrator that would allow for all clipping masks, groupings and compound paths to be released? Essentially a script that could breakdown a file to it's original ...
7
votes
3answers
18k views

Export objects to separate files in Illustrator

Is there a way to export objects to separate files in Illustrator? The output I want is AI or vector files, not raster images. The objects are not on separate artboards, and I am looking for a ...
7
votes
1answer
3k views

Run Illustrator script on multiple files

Is there a way to make an Illustrator script run over all files in a certain folder and perform operations on these? I am using CS5 on mac.
6
votes
2answers
4k views

How to create a vector curve programmatically?

I want to create a vector curve that is symmetric in the top and the bottom. For example, in this baseball icon (How to draw a baseball in Pixelmator?), if I try to write the vector as suggested by ...
6
votes
1answer
3k views

How to add numbers to Adobe Illustrator anchor points?

You know the "connect the dots" books for children where you connect the dots from 1 to 100 and a picture becomes visible? I would love to do the same in Adobe Illustrator. Is there a way (with any ...
5
votes
2answers
1k views

Is it possible to change an object and automatically change all copies of that object across artboards in Illustrator?

As the title say, is there any way in Illustrator to "link" an object to its copies? In other words, is it possible to change an object - for example some text inside it - and automatically change all ...
5
votes
3answers
11k views

Import vector data into illustrator

I have a program that generates thousands of vector points (just coordinates), the format is not fixed, but it could be something like this: (2.4785|77.01) (78.8|9.88) (45.33|0.2) I am able to ...
5
votes
2answers
2k views

Looking for illustrator script to swap all objects with another

I have a map with small circles for over 200 cities. I need to change all of the circles into map pins. Is there a way to do this? I think it's a script maybe. I know how to select all objects of ...
5
votes
3answers
11k views

Illustrator: Edit text in multiple text boxes at the same time

I have two text boxes that I need to have identical text, but in different fonts. Is there any way I can edit only the text content of both at the same time (keeping the fonts different).
5
votes
5answers
2k views

How to repeat the last run script in Illustrator?

If I run a script, is there a way to run it again without doing File|Scripts|My_script?
5
votes
1answer
1k views

How to make triangles with rounded sides and corners? (squircle with 3 sides)

Methods likes this Rounded corner shape with rounded sides Don't really work for triangle. So now I'm thinking what's the best way to make this shape, so I can control the radius of roundness at the ...
5
votes
4answers
2k views

How to create an array of circles within a circle?

I'm looking to place exactly 750 filled circles in a random array within a circular shape, essentially a static version of this infographic I've considered scatter graphs (but that seems as painful ...
5
votes
3answers
5k views

Can I use Illustrator to import text data and populate text boxes?

I have a long list of organizations in one column in my csv. I would like to populate separate text boxes within one Illustrator file with this data. These text boxes are not in a table, but in a ...
5
votes
2answers
3k views

Illustrator: Scale all strokes in a document without touching object and pattern size?

I have an illustrator file (actually it's a map) which has lines, polygons and some patterns. I would like to scale the stroke width of all lines (also lines inside patterns) by 80% without altering ...
5
votes
1answer
2k views

Illustrator script to add colors from selected object onto artboard as swatches?

I'm looking for a way to add color chips, along with their color name onto the artboard based on a selected object. I work in textile and print design, need to create a mill-sheet listing out every ...
5
votes
0answers
37 views

illustrator: Aligning an object to the top of an angled shape

I want to align an object to the top of a shape with an angled side. like so: Let's say this is my starting position of the object I want to move: If I select both and do 'vertical align top'. It's ...
4
votes
1answer
6k views

Illustrator scripting: resize that works like transform tool in illustrator

I'm writing a script for Illustrator CS5 to resize my artwork (and artboards and a whole lot of other stuff in a batch). I'm having severe issues with the javascript functions resize() and transform()...
4
votes
2answers
2k views

Illustrator scripts disappearing from Actions

I've created Actions that include scripts (by using Insert Menu Item). I managed to get the scripts to show up in the menu by adding them to the folder ~\Presets\en_US\Scripts in my Illustrator ...
4
votes
1answer
741 views

Illustrator: I need a script that manages paths based on maximum caliper diameter

I'm not that familiar with AI scripting, but I think what I'm looking for is simple. I need a script that can examine a path and find the two most distant anchor points. Then create an axis between ...
4
votes
2answers
640 views

Creating Archimedean Pentagon Spiral in Illustrator

Does anyone know how to create an Archimedean Pentagon Spiral in Illustrator without having to hand-draw or using the Blend tool? A script where the math can be controlled would be ideal.
4
votes
1answer
1k views

Outline Dashed Line Stroke: How to order objects?

I'm trying to use Outline Stroke on a dashed line but it creates a bunch of objects that cascade down to both sides, like so: Is there a way to make Outline Stroke follow one direction through the ...
4
votes
1answer
1k views

Automatically save a jpg along with AI file?

In Photoshop we have "Save Extra JPEG" in Script Event Manager which saves a jpg automatically with the psd file. Do we have something similar in Illustrator?
4
votes
2answers
15k views

Illustrator action to embed all external objects

To embed all external objects in Illustrator I do this: Open the Links panel Select all the linked objects (select first, shift+clik on last) Select Embed object(s) from the dropdown menu in the ...
4
votes
1answer
2k views

How can I automatically group each shape with the text inside it for a huge collection of rectangles?

I have a .dwg (AutoCad file) map full of fields (rectangles) that I'm manipulating with Illustrator. Each rectangle has a text inside it that indicates its number. The problem is that there is no ...
4
votes
1answer
1k views

How to get an object style in Illustrator scripting?

I'm writing a script to automate scene states. I using graphic styles to change appearance. How do I get object's graphicStyle? Is there a way to have a collection of objects of chosen style?
4
votes
3answers
991 views

Subtract paths, automated (using a script)

I have 100+ SVG files, each containing a few closed paths (with Bezier curves), like this: I'd like to do the following: select the first (bottom) path duplicate it move the duplicate by an (x, y) ...
3
votes
2answers
2k views

Distribute objects optimaly

So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is ...
3
votes
3answers
390 views

Corner pointing arrow grid

Hey folks, just whipped this up in Illustrator manually, but looking to do it on a much larger scale. Anyone have an idea as to how to automate this process or have a script that does somethin like it?...
3
votes
2answers
676 views

Saving many artboards as eps without the artboards' border

I have an .ai document with many artboards. I would like to save each artboard separately as an .eps so I can place it in InDesign. If I use the "Save As" option and check the "Use Artboards" box. ...
3
votes
1answer
7k views

Toggle Illustrator Layer visibility?

I am looking for a way, preferably one that can be triggered via keyboard shortcut, to both toggle the current layer to visible/hidden and to be able to toggle a specifically-named layer visible/...
3
votes
1answer
2k views

Toggle visibility for sublayers in AI

I want to toggle the visibility of the sublayers with a certain name. Now, I've seen it done for a layer: #target illustrator all_layers = app.activeDocument.layers.getByName("Layer 8") all_layers....
3
votes
1answer
2k views

Using Paper.js with Illustrator

I've been searching for a way to get the average color of a raster image, to use in a vector grid in front of it to create a mosaic effect - the "Object > Create Object Mosaic..." menu option does not ...
3
votes
2answers
473 views

Create 2 morphable SVGs

I am trying to create 2 SVGs that can be morphed from one another in order to use them in an Android app. However, the requirements are rather strict: The 2 SVGs (from and to) must have the same ...
3
votes
3answers
10k views

How to export large amount of objects to separate images in InDesign?

I have this photo album with two layers, layouted in InDesign (CS6): On the first layer I have all the graphic elements (the gras and the yellow elements) On the second layer are portraits (the ...
3
votes
2answers
2k views

Repeatingly increase an object size with certain amount of px

Fairly new to AI, certainly to scripting. I'm trying to recreate this poster: The problem I'm having is that I want to automate the creation of the large amount of circles. I want to record an ...
3
votes
3answers
4k views

Can I include / reference external scripts and libraries within my Adobe Illustrator .jsx script?

We're writing a bunch of .jsx scripts, and in each one I have to mock out some functions so I can use things like Array.map() and String.trim(), but I don't want to have to include that code at the ...
3
votes
1answer
566 views

How can I create a path with Bézier curves using a script?

I have a script which makes a simple shape* for me: var docRef = documents.add(); var piRef = activeDocument.pathItems; { var pathRef = piRef.add(); pathRef.setEntirePath( new Array( ...
3
votes
2answers
4k views

Illustrator CC: join overlapping anchor points only

A lot of the PDFs I end up working with are exported as thousands of completely separate lines, which creates performance problems in my workflow further down the process. The lines appear to be ...
3
votes
1answer
3k views

Is there a script to export illustrator image as multiple file types, colours, sizes?

I have 6 different logos to each be individually saved as Black >> CMYK / RGB >> JPG / TIFF / EPS Colour >> CMYK / RGB >> JPG / TIFF / EPS White >> CMYK / RGB >> JPG / TIFF / EPS Is there a script ...
3
votes
3answers
1k views

How to get an Illustrator script to see the visible size of clipped art instead of the art's orginal size?

When I use an Illustrator script using visible bounds or selection size on clipped art, the script sees the original size of the clipped art as the groups's size instead of its visible (clipped) size. ...
3
votes
1answer
578 views

How to automate setting position and dimensions to round values?

I'm trying to set the position and size of selected objects in Illustrator to whole numbers quickly. Is there an Action or Script that does that already? If so, where can I find that? Otherwise, ...

1
2 3 4 5