Questions tagged [illustrator-scripting]

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

41 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
3
votes
1answer
1k views

adobe illustrator script that saves low quality pdf?

How would one alter the preset script (Illustrator CC) or is there a script that can batch save a bunch of pdf's in low quality from some ai files? If anyone has such a script please add a link or ...
3
votes
1answer
491 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
0answers
39 views

Script to create linear path from bezier path on document grid

How do I find the nearest grid point of a bezier path as it intersects the document grid? I am writing a script to create a linear copy of of a bezier path. I need to know where the path crosses the ...
2
votes
0answers
21 views

Adobe Illustrator Find Layer by Name Using JavaScript

I have been looking into the scripting side of Illustrator and have been struggling to get my head around things. I am trying to create a simple code that would find a layer by name/ID and change its ...
2
votes
2answers
284 views

Resizing shapes using an absolute value in Illustrator

I want to clone and resize a bunch of the same shape. I want them to all be X smaller/bigger than the previous shape, where X = absolute value (not a relative percentage). Currently, I can only find ...
2
votes
0answers
252 views

Order objects according to their place in Adobe Illustrator

I made this collage with CercleFill Script in Adobe Illustrator, it's a great result but the cercles are in random order, I found an other Adobe Illustrator script that can order layers alphabetly, ...
2
votes
0answers
302 views

Batch Data-driven variables automatically size text to fit a defined area

so I want to know if it's possible to generate text on image with fixed width and adjust the text to fit the full width if, for example, the variable name length is short. Example in attachment I ...
1
vote
0answers
31 views

In Adobe Illustrator, is there a way to Batch Package .ai files, free?

I have a lot of .ai files which they need to be sent to publisher, packaging them one by one is a pain! There is some sharewares for mac, but I'm on windows 10, and prefer a free script, plugin or ...
1
vote
0answers
28 views

Illustrator scripting: setting bleeds

Trying to solve this has been an odyssey, thanks in part to Adobe's new community platform breaking old links. Most of what I found is in this thread. So for some stupid and arbitrary reason, document ...
1
vote
1answer
89 views

Programmatic circle diagram approach/technology

I'd like to make something like this programatically. http://www.feelingswheel.com/ Does anyone have a suggestion? Could you approach this programmatically with Illustrator, Inkscape, HTML5, or Three....
1
vote
4answers
300 views

Is it possible to have variable-linked text box change based on document name?

I am working with personalized items for different sports teams. We get a spreadsheet of personalizations needed (like "Bob", "Cheryl", "Best Dad") that need to go in a ...
1
vote
0answers
35 views

Selecting and moving anchor points based on User input

I am pretty now to scripting inside Adobe Illustrator. I made a basic script, that opens UI window, where user input three dimensions and the output is three variables X, Y, Z. What I want: I want ...
1
vote
1answer
128 views

How can I place randomly selected symbols onto a grid in Illustrator?

I have a bunch of square symbols that are all the same size. I would like to set random pre-designed symbols into a defined grid. Square symbols: Grid: Symbols placed randomly within grid: Is this ...
1
vote
0answers
41 views

How to save groups as separate assets with layers prefixed in the filename

I am trying to save illustrator art assets using the inbuilt Layer/Group hierarchy to determine the save location and file name. I believe this requires some Illustrator script. In this case I have a ...
1
vote
1answer
263 views

How to automatically generate text that adopts the same name as an imported image or Excel file in illustrator?

I have a lot of product photos to edit in Illustrator. I want to create several artboards with one product image, and then one text box for each artboard, but I need these to automatically adopt the ...
1
vote
0answers
241 views

Selecting textframes with illustrator script

How could I select textframes in illustrator with script? Here is my code: var doc = app.activeDocument; var nameKorText = doc.textFrames.getByName('nameKor'); nameKorText.contents = "test"; I ...
1
vote
0answers
123 views

Why am I getting dotted grey edges on my batch exported images?

I have created a script which batch exports an ai file into an SVG file and multiple sizes of JPG and PNG files. The script creates three directories in the parent directory of the directory the ai ...
1
vote
1answer
759 views

Create SVG with editable text (not outlined) and use it in Canvas HTML5

I created the same SVG file in 2 versions: 1- Editable text 2- Outlined/curved (NOT editable) text: When I import it into my website HTML5 Canvas... 1- Editable text - does NOT load properly (is ...
0
votes
0answers
16 views

How do I rename a text box in Illustrator with a JS script? (CS4)

Sorry I'm super new to this, I can't figure out how to rename a text box. I have a function that's supposed to take in a text box object and resize it to fit the text inside. I would want it to keep ...
0
votes
0answers
22 views

Run Illustrator extension through a script

I have been using .jsx scripts to automate some tasks in Illustrator, but I haven’t figured out how to execute actions from extensions through a script. I would for example like to push from ...
0
votes
0answers
90 views

Extracting Text from a AI file and saving in a CSV

I have many AI files which contains text. How do i extract the text collate it and save it in a CSV in the below format" File Name | Text | Also, does each textFrame also have a unique id? I ...
0
votes
0answers
54 views

illustrator script _ stop running script on click button close or exit

this example script creates a rectangle via dialog box ... the problem is that when you press cancel or x button the script continues to run .. how to make to stop functions when i press cancel or ...
0
votes
0answers
48 views

Toggle visibility to outline view for current layer?

im looking for some faster way to switch between outline mode and normal mode view of current layer, or specific layer. Instead of clicking ctrl+click on eye every time. Because i need to see mesh ...
0
votes
0answers
36 views

AI Script to control the anchor of the rectangle from the left

Can I control a rectangle's anchor on the left with a script up or down (like in the picture). var Rctngl=0; var var_Integer; mm = 2.834645731787465 var_Integer =Rctngl; var_Integer = prompt ("...
0
votes
0answers
26 views

Script for automatically changing path directions

I need a script for Illustrator that does the following: First path follows clockwise direction Second path inside the 1. Path follows a countclockwise direction Third path inside the 2. path follows ...
0
votes
0answers
26 views

Add anchor point at x points along length of curved path from starting anchor point in Illustrator

Has anyone written an Illustrator script that will add an anchor point along the length of a curved path composed of multiple segments at x points from a specified anchor point? Also, does anyone have ...
0
votes
2answers
223 views

Is there a script to re-stack objects in illustrator by distance from top left?

This is ideal for the creation of isometric graphics. You can replicate an isometric tile symbol with a graphic in it, like a house or a tree, multiple times, then run the script to re-stack all ...
0
votes
0answers
48 views

Adobe Illustrator Script for Annotations

Does anyone know if there is a Adobe Illustrator script capable of creating an annotation like this? More specifically, drawing a stroked box around the text and showing the formatting info to the ...
0
votes
0answers
40 views

recolor objects different versions from swatch (excel)

My question is similar to Recolor Artwork: single swatch to multiple swatches, however, instead of coloring random squares, I have objects such as a shirt that want to make multiple versions of, the ...
0
votes
3answers
128 views

Resizing objects with different width by specific value in Illustrator

I've searched similar questions but none matched my need. Let's say you have a lot of rectangles with different width (12mm, 35mm, 6.54mm etc) and you want to add 2mm to each object's width, 1mm both ...
0
votes
1answer
188 views

How to export multiple artboards coordinates (x y) to file?

I have an Illustrator file with several artboards as attached. In particular I have an artboard that contains all the others. The other artboards concern the individual objects to be exported. I ...
0
votes
1answer
83 views

The area selected in the illustrator script does not have a bottom center line

The area selected in the illustrator script does not have a bottom center line. What could be the problem. var aDoc = app.activeDocument; var aSel = aDoc.selection; var len = 10; var line = ...
0
votes
0answers
230 views

Illustrator Script Group Sublayers One By One

Trying to convert all sublayers of my design (with or without children) into a group on its own. You can check on my screens what i have to what i need to obtain. What i have What i need Here is ...
0
votes
1answer
1k views

Illustrator Script Help create LAYER TO GROUP function

Im kind of new on this and im trying to find a solution to "Group" all layers in INDIVIDUAL/SEPARATE GROUPS. Have not been successful within the 1st stage of my script to work by grouping each layer ...
0
votes
1answer
435 views

How to import data and create a symbol using scripting with Illustrator?

I would like to automate a series of actions in Illustrator, creating a complex symbol from vector images imported, or from simple symbols. The actions are: Importing files or choosing symbols from ...
0
votes
2answers
220 views

Test if two Adobe Illustrator PathPoints are the same in script

I am trying to write a function that takes a PathPoint and returns its index relative to it's parent PathItem. Something like this: function getPathPointIndex(pathPoint) { var pathPoints = ...
0
votes
2answers
654 views

How to export font names as web font names in Adobe Illustrator CC

I'm trying to see if there's a quick and dirty way to export Adobe Illustrator files as SVGS that use the web font names on my company's website instead of the system font names on my machine. Is ...
0
votes
0answers
174 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
2answers
397 views

Can I assign actions to non-function keys in Illustrator CS6?

I simply want to be able to assign actions to keys in different locations on the keyboard, other than F1-F12. Is this possible? How?
-1
votes
1answer
90 views

How to create a diamond pattern with random fill colours and stroke?

Pattern in question is the one on the left, it has random shades of black/grey, I'm not sure how to make something like this.