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
1 vote
1 answer
35 views

Is it possible to edit a Gradient Swatch in Illustrator's UI?

I can't find any way to edit a Gradient Swatch in Illustrator's UI. I can do lots of things with a Color Swatch or a Pattern Swatch, but for some reason, I can only change the name of a Gradient ...
user avatar
0 votes
0 answers
20 views

a script to duplicate mi currect artboard and resize it please

I want to do a action but I think that with a script is better, but I´m not good at it: I want to duplicate my current artboard and resize this new artboard to 30cmx30cm, and make a mask on it, ...
user avatar
0 votes
0 answers
48 views

How to modify and fix this Adobe CEP Extension (Adobe Scripts Panel)

There is a very useful Adobe CC extension called Adobe Scripts Panel, which is essentially a panel that lets you run scripts on the fly without having to go to File > Scripts > Select Script in ...
user avatar
  • 123
0 votes
0 answers
43 views

The object "Script Name" is not currently available

I made an action, inside this action, there is a script (about set Artboard 4 Active) when I play it as a batch I get an error The object "Script" is not currently available. so the script ...
user avatar
-1 votes
1 answer
107 views

How can I SELECT multiple artboards To duplicate them in Adobe Illustrator with action or with script?

I have like 270 files each file have 4 artboards, So I want to duplicate the ArtB(3) and ArtB(4) For 80 times, but I need a script to select the artboards that i need then duplicate them in action to ...
user avatar
0 votes
2 answers
44 views

Resizing multiple objects with cursor? [Illustrator]

Does anyone know about a way within Illustrator (or a script from outside it) that could allow a user to manually, with a cursor resize multiple objects at the same time, while maintaining their ...
user avatar
0 votes
0 answers
49 views

Illustrator - how to properly check the path is a rectangle shape and is rotated using javascript?

When I import DWG files which contain simple objects, mostly rectangles, circles, lines or polygones and save the result in SVG sometimes i get shapes with matrix transformation. I know what is matrix ...
user avatar
3 votes
1 answer
73 views

I wrote a script that will change a swatch color, but why does it work?

I want a script that will change a swatch in my Illustrator document, where this particular swatch is named “strap”. I looked over the Internet, and didn't find anything that worked, but I noticed ...
user avatar
  • 373
0 votes
0 answers
29 views

How do I find a named sublayer?

I have many files with a similar layer structure, but the layer structure is not exactly the same in each of these files. Each file has layers inside of layers; in other words, nested layers. One of ...
user avatar
  • 373
1 vote
2 answers
101 views

Adobe Illustrator selection and scripting

I want to ask two questions I can select multiple objects, and after that, if I click one of the selected objects, last clicked one becomes "active" or "super selected." What is ...
user avatar
0 votes
1 answer
113 views

How do I edit an illustrator script on a mac. Script editor wont' work [closed]

I'm new to scripts. I want to use the Script Editor that comes with my mac, but I can't seem to make it work. For example, I found the simplest possible Hello World java script on the internet, and ...
user avatar
  • 373
2 votes
1 answer
58 views

Do "let" and "const" work in Adobe scripts?

Do they work or they don't? Changing some var variables to let resulted into error, while changing some of them to const didn't. Are both of them unsupported?
user avatar
  • 131
0 votes
1 answer
78 views

How to get menu items from Adobe Illustrator interface?

There are many drop-down menus in the top of the Adobe Illustrator window. I would like to have a way to get a tree of these commands with their functions to cal in the script. For example, for this ...
user avatar
  • 131
0 votes
0 answers
42 views

make png files name as layername+groupitems

I tried this on svg first, but the come didnt well, anyone know? So I want the name is Layer and group visible only case Layer Bono (O) grup A (.) grup B (.) grup C (O) Layer Delta (O) grup D (...
user avatar
  • 1
0 votes
1 answer
80 views

ui remember last user input

How can a make a .txt file to save user input data after each use ? I would like to save/remeber "width" and "height" var until the next input. Thank you very much var doc =...
user avatar
  • 1
0 votes
1 answer
37 views

How to convert embedded image to mosaic thought illustrator JS scripting

I would like to convert an embedded image to a mosaic through a script since I need to iterate it a few hundred times. I've tried using app.executeMenuCommand("Live PSAdapter_plugin_MscT"); ...
user avatar
0 votes
0 answers
32 views

adobe illustrator auto combine layers and export as png

I’ve been working with Illustrator CC 2018, did you all know the code to combine all "group layers" and export artboart make it png with looping name? example: Layer Eyes red eyes group ...
user avatar
  • 1
-1 votes
1 answer
71 views

Copying Selection to Multiple Layer in Different Position

I am trying to cut selection and paste into four different layers using javascript (layer 01, layer 02 etc.) Like the example picture below: I am trying to find a solution but because of my lack of ...
user avatar
1 vote
1 answer
578 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 ...
user avatar
  • 372
1 vote
0 answers
83 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 ...
user avatar
  • 11
0 votes
0 answers
54 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 ...
user avatar
  • 1
1 vote
0 answers
45 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 ...
user avatar
  • 111
4 votes
1 answer
84 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 ...
user avatar
2 votes
0 answers
51 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 ...
user avatar
2 votes
1 answer
100 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 ...
user avatar
1 vote
1 answer
153 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 ...
user avatar
  • 11
0 votes
0 answers
233 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 ...
user avatar
0 votes
1 answer
125 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 ...
user avatar
  • 1
2 votes
1 answer
116 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 ...
user avatar
  • 41
0 votes
0 answers
51 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 ("...
user avatar
  • 11
0 votes
1 answer
40 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 ...
user avatar
  • 1
0 votes
1 answer
124 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 1,608
1 vote
2 answers
116 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....
user avatar
0 votes
2 answers
372 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 ...
user avatar
2 votes
2 answers
121 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 ...
user avatar
  • 121
1 vote
4 answers
632 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 ...
user avatar
1 vote
1 answer
548 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 ...
user avatar
  • 1,259
1 vote
1 answer
96 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 ...
user avatar
  • 11
0 votes
0 answers
43 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 ...
user avatar
  • 11
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
  • 372
0 votes
3 answers
256 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 ...
user avatar
5 votes
2 answers
2k 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 ...
user avatar
-1 votes
1 answer
110 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.
user avatar
  • 1
0 votes
2 answers
1k 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 ...
user avatar
1 vote
0 answers
52 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 ...
user avatar
  • 11
2 votes
2 answers
778 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 ...
user avatar
0 votes
2 answers
659 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 ...
user avatar
2 votes
2 answers
194 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 ...
user avatar

1
2 3 4 5