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

learn more… | top users | synonyms

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 ...
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?
13
votes
4answers
30k 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?
12
votes
3answers
46k 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 ...
7
votes
1answer
218 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 ...
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 ...
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?
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
2answers
2k 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
2answers
7k 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 ...
4
votes
3answers
6k 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 ...
4
votes
1answer
2k 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.
3
votes
4answers
553 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 ...
3
votes
2answers
1k 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).
3
votes
1answer
3k 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()...
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 ...
3
votes
2answers
1k 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
2answers
566 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
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, ...
3
votes
1answer
583 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?
3
votes
1answer
463 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?
3
votes
3answers
2k 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
0answers
40 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 ...
3
votes
1answer
296 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 ...
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 ...
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/...
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 ?
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 ...
2
votes
2answers
728 views

Applescript for Ai CS6, color set and get

This is the last time I ask the question about Applescript - I see that this topic is unpopular since none of my questions has been answered. Probably I'm on the wrong way, but scripting for ...
2
votes
1answer
377 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 ...
2
votes
1answer
532 views

Automating file export with different colored objects and file names

I’ve been working with Illustrator CC 2014 on a floor map for a ~400 rooms building. To allow visitors to find rooms more quickly, I wanted to generate a series of images with highlighted rooms. The ...
2
votes
1answer
516 views

Illustrator CS6 Actions

Is there a way to create an export action in Illustrator where each time the action is run, it asks for a location to export to? I work on multiple projects where the exported JPEGs need to go into ...
2
votes
1answer
223 views

Tapering spiral text - tried text on path, art brush, and envelope distort [duplicate]

Using Illustrator CC 2014: I'm trying to create a spiraled text in which the text size decreases as it spirals inward. I've tried putting the text on a path created using the spiral tool and ...
1
vote
1answer
307 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 ...
1
vote
2answers
170 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 ...
1
vote
2answers
119 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 ...
1
vote
2answers
411 views

How to get the x/y position of multiple points on an artboard

I've got a bunch of objects on an artboard and I'd like to know the X/Y positions of them all. It would be fine to either have pixel values, or a % from the sides of the artboard. Importantly, I don'...
1
vote
2answers
215 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 ...
1
vote
1answer
34 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 ...
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 ...
1
vote
1answer
150 views

Scripting In photoshop and Illustrator

I'm a graphic designer, but I have never been into coding, now I want to learn Scripting for adobe programs like photoshop and illustrator, What would be a good place for a non developer to start ...
1
vote
3answers
1k views

How to auto fill dates while doing a calendar?

I want to make a useful calendar in AI. Thus far I have made 12 columns, which each stand for a month, and around 31 boxes in each with days and weekdays listed. There has to be a box because I want ...
1
vote
1answer
43 views

Converting from CSS3 to SVG

So, I was working on my site and an accidental mistake did a nice 3D effect to my new Logo, is there any way to convert or import a CSS3 code to illustrator so I can have it as .SVG?
1
vote
2answers
3k 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 ...
1
vote
1answer
330 views

Is it possible to create by Applescript a new Illustrator document with other name than Untitled-*?

I've tried this applescript code for Illustrator CS6: tell application "Adobe Illustrator" make document with properties {name:"anyName"} end tell but couldn't affect the name of newly created doc....
1
vote
1answer
202 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 ...
1
vote
1answer
125 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.
1
vote
1answer
105 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 ...
1
vote
1answer
1k views

Divide a path into equally parts

I'm looking a way or tool to divide a spline or path in equal parts, or, what is the same, equidistant points (anchors). This is a very common question, but i haven't found an answer. Also, is pretty ...
1
vote
1answer
163 views

Illustrator: Selecting all objects across x axis

Ok so I got this huge document, about 1.5 x 1.2 metters and because I was working a little bit fast the aligning of some elements wasn't pixel perfect but is more or less accurate. Now that I've ...