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

learn more… | top users | synonyms

1
vote
1answer
37 views

Is there a way in Adobe Illustrator to import a path from a list of points?

I want to be able to take a list of point coordinates created by a script and import them as a path. The list would be just be a text document with the coordinates separated by line breaks. Is there a ...
1
vote
1answer
36 views

rotation target and illustrator actions

I'm building a set of actions to help myself create pie charts, one segment create a line segment at a certain point (from the artboard center out), and the attempts to rotate it around the same point ...
0
votes
1answer
203 views

Is there a way to create an action or script to select and embed external file(s) placed in an Illustrator file?

As a follow-up to my question Is there a way to expand linked EPS file placed inside another EPS file in Illustrator? I am now trying to create an action to select and embed external file(s) placed ...
3
votes
1answer
301 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 ...
0
votes
1answer
22 views

Batch copy/paste of rectangular images in square images?

I have got more than 1000 rectangular images (640x400) with a transparent background that I want to resize (to 600x375) and then copy/paste (centered) in a 600x600 transparent image. In other words, ...
1
vote
1answer
205 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 ...
6
votes
3answers
1k 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 ...
3
votes
1answer
150 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
vote
1answer
130 views

How to “save for web” multiple Illustrator files with Illustrator script?

I have about 55 ai files and i wanted to save for web for all these files using adobe illustrator script. I wanted to save all of them at 1200 percent size of the document size.
0
votes
0answers
15 views

Illustrator default unit with Applescript

When sketching with Adobe Illustrator thanks to Applescript, I faced a little problem regarding the default document units. Indeed, the default unit with scripts is points but I want to work in ...
1
vote
2answers
41 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 ...
3
votes
1answer
31 views

How to batch save data driven graphics with a script in Illustrator?

I build data-driven graphics in Illustrator and am able to run a batch "Save to PDF" action on these graphics. Can I do the batch "Save to PDF" action with a script instead? My thinking is that the ...
1
vote
1answer
33 views

How to wipe the active document clean at the beginning of a script?

I want to have a blank slate at the start of my script. My two current approaches both have downsides. First, I create a new document at the start of the script. However, during development, I test ...
2
votes
1answer
2k 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/...
0
votes
1answer
26 views

How to get the coordinates of different points in Illustrator?

While writing a script, I have to go through a lot of trial and error to simply get a text frame to appear where I want it to be. The main hurdle is that I can't tell in advance where a [200, 200] ...
0
votes
1answer
144 views

illustrator actions - live trace settings

I'm trying to set a macro to batch vectorize png to svg vectors, but i'm stuck at the Live Trace action. Illustrator will only use the default preset, how can overwrite the default preset OR create an ...
-1
votes
1answer
42 views

frame around the selected area to the script in Illustrator

var idoc = app.activeDocument; var sel = idoc.selection; var blk_color = new CMYKColor(); blk_color.cyan = 100; for (i=0; i<sel.length; i++) { var pgItem = sel[i]; var ...
5
votes
3answers
1k 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
5answers
1k 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?
0
votes
1answer
2k views

Illustrator script - create objects, rotated and centred with a selected object

Edit: Oops, it's working! It seems that the problem has been solved by loading the updated script via File / Script / Other File... option. Before the stroke width change wasn't affecting the ...
3
votes
0answers
43 views

How to copy illustrator opacity mask via script?

Situation - I have a group that contains some objects partially covered by opacity mask to emulate blurred edge. It is very easy to copy-paste such group in Illustrator - and copied group contais the ...
2
votes
2answers
1k 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 ...
0
votes
1answer
149 views

Adobe Illustrator / Rhinoceros custom object select

I'm using both AI and Rhino. I've got a file that's got over a thousand small circles that are nested inside other curves all over the file randomly. I want to select them all and group them in either ...
2
votes
3answers
2k views

Illustrator - Print copies with sequential numbers

I have an Illustrator document, which has a text field with a number. How do I print X copies of it, so each copy has a different sequential number on it, say from 0000 to X ?
0
votes
1answer
59 views

Does anyonw have a script for adding sequential numbers (as a prefix) to layer names in Illustrator [closed]

I'm looking for a script that can add sequential numbers as a prefix to existing names of layers in Adobe Illustrator. Does anyone here known of one? Or, could you direct me to where I may find one? ...
0
votes
1answer
2k 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 ...
3
votes
4answers
576 views

How to make random dots in different sizes and spaces between the dots in Illustrator?

I am trying to make something similar to this? Obviously it's possible to make it manually piece by piece, but I am looking for some kind of automated feature in Illustrator to achieve this? Is this ...
0
votes
1answer
89 views

Script to add numbers to end of AI layer names?

I figure this script would be fairly easy to write since its a simple task but I know next to nothing regarding javascript. Essentially all I want to do is add numbers to the layer names, the top ...
0
votes
2answers
93 views

How to change multiple colors in the same text area quickly?

As shown picture, how can I change the color of "Ms" or "Mr" in one go? Any Way or Script?
0
votes
1answer
65 views

Is there a way to automate reversing the order of artboards in Illustrator?

Is there a way to reverse the order of artboards so that pages 1 2 3 4 become 4 3 2 1 ? I am trying to extract the English pages from a bilingual booklet and changing each artboard manually is not the ...
1
vote
1answer
106 views

Illustrator Scripting - Preference Strings - How to obtain?

This is a followup question to the answer in script-to-automatically-snap-all-points-to-grid-in-adobe-illustrator. In the answer getIntegerPreference is used to find the grid setting. But the question ...
7
votes
1answer
220 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 ...
0
votes
0answers
62 views

How to select low resolution images in illustrator?

I am getting EPS/PDF files with lots of tiny images in it an those tiny images are having resolution lesser than 150 dpi and while masked. When it is lesser than 150dpi my preflight server is giving ...
1
vote
2answers
217 views

Illustrator Javascript scripting: place image file if it has same name of illustrator file

I'm -slowly- learning how to code using javascript in Illustrator, and I'm trying to write a script that automatically picks an image file from a given fixed folder in my HD and places it in a fixed ...
0
votes
1answer
90 views

Embedding data in Illustrator objects

I'm trying to use illustrator to add string or numeric data to various elements (groups,paths, etc.) Is there a way to do this in Illustrator? With inkscape I can use the XML Editor, it's a bit ...
2
votes
1answer
390 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 ...
0
votes
0answers
67 views

How to delete gradient from the swatch

The following is a script that creates a gradient from the fill. However, the gradient is added to the s Swatch. The question is: How to convert this script such that after you apply it, the new ...
0
votes
0answers
46 views

JSX file placing stopped working

I have a .jsx script I'm using to place a set of png files into a clipping group. Was working fine yesterday, today it fails with error code 9080: Unable to set placed item's file, is the file path ...
0
votes
0answers
25 views

Creating a custom Arrowhead [duplicate]

I'm trying to create a custom arrowhead for a set of 500+ pre-made lines. I am currently able to select one of the default arrowheads from the stroke toolbar, but I need to create a cone shaped one (...
17
votes
11answers
110k 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 ...
1
vote
2answers
176 views

How to do animation frame pngs?

I wonder if there is any automated way of doing animations like on https://www.dropbox.com/ An image is really a set of frames that is cyckled through with javascript. What I would like to know is if ...
0
votes
0answers
14 views

Is there a way to import and iterate text data from excel to illustrator? [duplicate]

I am making a card game and I have a spreadsheet with all the data which I need to put on the cards. Is there a way to get it directly from excel to illustrator (or any other vector app)?
1
vote
1answer
310 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 ...
0
votes
1answer
450 views

Merge Point Text Objects Into One Text Area In Illustrator

After importing from PDF I have several single line point text objects which I want to convert to one multiline text area object. Currently I have several lines of text represented as separate point ...
1
vote
2answers
121 views

What is the best way to export an artwork in Illustrator?

I have 18 artworks in an .eps file. I wonder what is the best way to extract/export one of those artwork into a .png/.jpg ? Example I'm not sure if this possible, but is there a way to ...
2
votes
1answer
228 views

Morph vector shapes by more than 100% (shape extrapolation)

I'm looking for the tool that can perform blending/morphing of two vector shapes by more than 100%, i.e. extrapolation. Standalone or online tool or plugin/script will work for me. It shouldn't be ...
13
votes
5answers
3k 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?
0
votes
0answers
91 views

Can you pull a spectrum of colors (create a swatch group) from persons face?

I'm trying to do a low poly(gon) of my brothers face. I have his .jpeg in illustrator, I'd like to to try the following with the least amount of energy / time. If .ai can do something that saves me ...
0
votes
0answers
140 views

Adobe Illustrator script to walk through layers while exporting

I am trying to loop over 2 different top layers on my .ai file, each top layer contains several sub layers. The 2 top layers are icons (usual ui stuff) and modifiers (like plus and minus symbols). I ...
0
votes
2answers
172 views

Script to nudge by 1/10 in Illustrator

I wrote a script to nudge by 1/10 in Illustrator (like in InDesign). It works, but only for the whole object, even if I only select some anchors. Is there a way for it to work as well when only ...