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
0
votes
0answers
26 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 ...
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 ...
2
votes
0answers
38 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 ...
5
votes
0answers
34 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 ...
2
votes
0answers
20 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
1answer
50 views

How to create a darken/lighten keyboard shortcut in Illustrator?

Searching for greyscale keyboard shortcuts I stumbled upon this nice useful video. However at minute 1:15 she uses a keyboard shortcut to quickly lighten and darken the selected colors. How does she ...
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 ...
1
vote
1answer
38 views

Looking for illustrator script which will select a path by size

I work on files which include thousands of short paths. I need to remove these short paths. Often I can not remove them by choosing the line weight or color because the file originators, use the same ...
0
votes
0answers
85 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
1answer
53 views

How to create a pattern that does overlap the boundary

Working with the latest version of Adobe Illustrator I need to create a pattern that fills within the boundary of a polygon but doesn't clip the individual objects that make up that pattern. My ...
0
votes
0answers
53 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 ...
2
votes
1answer
58 views

Automating file export with multiple layers in Illustrator

I have an illustrator file that contains 4 layers with each its own word and 180 more layers. I want to make combinations of the 4 layers with the 180 layers. I'm currently trying to write the code ...
0
votes
0answers
47 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
1answer
36 views

Changing All Fills and Strokes to 1 Spot Colour - Action

I'm recording an Action in Illustrator for my Plate Making process. I'm new to Actions but so far so good. The action is quite simple. I'm supplied a 1 colour file. The file is opened and the first ...
0
votes
1answer
62 views

ExtendScript: Align group items centered in Ilustrator

Hi, I am new to illustrator and I want to align the textFrame centered to the pathItem(square) using Extendscript as shown in picture1. I have uploaded another picture, which shows the layer and group ...
0
votes
1answer
27 views

Print global colors into a text string in illustrator

You know what would be super nice? If there would be a function to link global colors to text strings. So if I create a CI/CD Manual and I change a color. The codes would update automaticaly. Do you ...
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 ...
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....
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
218 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 ...
2
votes
2answers
96 views

Is there an algorithm to orient several shapes/symbols towards the center of another shape?

What is the the easiest way to orient several shapes/symbols towards the center of another shape (see my sketch below) ? In Illustrator, I know the rotate tool with the copy option, but I think it is ...
0
votes
0answers
47 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 ...
1
vote
4answers
288 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
1answer
278 views

Can I use script to move items to a named layer in illustrator?

I have a programmable keyboard that I am using to assign shortcuts and nmacros to for various programs. One of the things I want to do is move selected objects to a named layer. I always have four ...
1
vote
1answer
70 views

define color palette from excel [closed]

I would like to define a custom palette from an array of colors (rgb/hsv whatever etc). I can save the array in excel if needed. How can I go about this? EDIT say i built a swatch file like this, i ...
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
1answer
479 views

Move item to a different layer using script in Adobe Illustrator

This may be a something I skipped over in my search, but can anyone show me how to add an item to a layer using a JavaScript Adobe Illustrator script? Also, are there any good resources for learning ...
0
votes
1answer
1k views

How to link objects to each other in Adobe Illustrator?

I know there is no such feature in AI, but I'm about to find any way to doing so. In Photoshop, user can "Link" objects to each other by selecting multiple objects and select "Link" through layers ...
0
votes
3answers
126 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 ...
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 ...
-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.
0
votes
2answers
781 views

How to keep Illustrator Scripts handy?

I have bunch of task which should be run simultaneously, but i have to click every time files > script > My scripts Is there any way to keep all script handly like other properties available on ...
1
vote
0answers
34 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 ...
2
votes
2answers
705 views

Any way to automatically find and save any .ai file as .svg?

For reasons, I would like all my .ai files saved as .svg too. I have hundreds, if not thousands, saved in different folders. Is there a way that I can script this using Illustrator? Why? Amazon ...
0
votes
2answers
415 views

How to warp an image to take shape of truncated pie (controlled by some input parameters)?

I am new to Photoshop/Illustrator. I would like to warp an image like the attached truncated pie. Assuming this truncated pie is part of a circle, then outer radius of curvature should be 15 units ...
1
vote
1answer
127 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
40 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 ...
0
votes
1answer
353 views

How to change color of multiple svg files in illustrator

I have more than 600 svg icons. Each one is separate files not combined, is there a way to change the color of all of it at once in Illustrator. I am using Illustrator CS6 version. is it possible ...
2
votes
2answers
2k views

Delete path with size smaller than 0.7mm in Illustrator

I have a traced image in Illustrator with many smaller shapes. I want minimum 0.7mm size for every shape. Is there any way to delete or increase size of all shapes that are smaller than 0.7mm?
0
votes
1answer
40 views

Adobe scripting compatibility for different products

I am trying to understand scripting for adobe products using extendscript and I have a doubt whether I can re-use a script between different adobe products like ai, ps, pp and ae? Will there be some ...
1
vote
1answer
262 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 ...
0
votes
1answer
184 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 ...
1
vote
0answers
238 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 ...
0
votes
1answer
80 views

Get black value of color of text Illustrator Scripting VB

I am trying to determine the value of the black in each text item in an illustrator document. I have managed to successfully run the count words script and alter it to apply a tint and a new color to ...
2
votes
4answers
222 views

Approximate path Illustrator plugin

I've been creating simple animations like the one shown here. But I want to find a way to speed up the process by making the path jitter (not the thickness) while keeping a uniform stroke thickness (I'...
2
votes
1answer
526 views

Extract the text out of Illustrator file any API or script?

I'm working on a project that has 1000 files with the same typo ex. the file with the word "dogs" that has to be turned into "dog". these 1000 files has the same typo. Is there anyway that I can write ...
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 ...
2
votes
1answer
291 views

Way to create circles in specific location in Illustrator or Indesign?

I have 167 coordinate points (origin is the left lower corner of a sheet) in which I need to place a circle, the center of it. Is there any way to create those circles (15 mm diamater) automatically ...
2
votes
1answer
304 views

Batch Saving Data Sets - Illustrator Error on Data Set Change

I am trying to update all the Data Sets in my Illustrator document so that when I do a Batch Action Save I don't get the following error: The current values have not been captured and will be ...

1
2 3 4 5