Questions tagged [illustrator-scripting]
Questions about the automation and extending of functionality through the use of scripts within Adobe Illustrator.
242
questions
1
vote
0
answers
51
views
Illustrator: I need an 'Average points by distance' script
I'm currently working on a path that was once a pattern with multiple loose ends. I'm unable to pathfinder>unite it since it's a "lines only" shape.
As you can see, it's a very complex ...
-1
votes
1
answer
61
views
Expand color range selections to up or down only
for example i selected some areas like following:
Now i want to expand above selections to following:
If have any trick or script for this, please provide here.
I hope you fully understand what I ...
0
votes
0
answers
37
views
Create a new illustrator document with callback options
I am totally new to javascript and extended script. I made a lot of tutorial to try to learn the right method and syntax but for several weeks I can't create the script I want.
The script is quite ...
0
votes
0
answers
33
views
adobe illustrator Script for textframe having enter key
thanks in advance for any assistance regarding this issue
i am not scripting guy
i copied this script from somewhere i don't remember
var document = app.activeDocument;
var TextFrame = activeDocument....
0
votes
0
answers
38
views
Setting export location when using quick actions
I’m setting up some quick actions to improve my workflow, one is that I export a jpg of the artboard to a certain folder for each job I do.
ie. every job I do has a 3 folder directory, and my working ...
0
votes
1
answer
122
views
Is there a quick way to create a series of point text objects in Adobe Illustrator with sequentially increased numbers?
For a simple game design, I find myself needing numbers in a consistent style, all of them single point text objects. Importing a text file creates a single text frame, and that's not what I want.
Is ...
0
votes
0
answers
25
views
Why are other text fields affected?
My code actually works very well. My goal is just to replace the word PANTONE. But why does it distort the colors and sizes of other text areas?
for(var j = 0; j < app.documents[0].textFrames....
-1
votes
2
answers
186
views
Getting all hex colors to export to png
I'm doing something kinda silly where I actually do need all ~16mil RGB colors. I do know how to do them separately, one by one, but I can imagine that taking quite a long time to do it manually.
This ...
1
vote
1
answer
98
views
Illustrator - Let the script only apply to one document
I found such a script. But it works on all open files and takes a lot of time. How do I do it to only one current tab.
var doc = activeDocument;
for(var i = 0; i < app.documents.length; i++)
...
1
vote
0
answers
96
views
How to mimic string/thread art with vectors in illustrator?
I'm designing a wall mural for an office and have to do an illustrator mock up of a string art wall similar to this:
Does anyone know how to achieve a similar effect? I tried searching all kinds of ...
1
vote
0
answers
189
views
Illustrator Script to Select specific sublayer Text of specific Layer
I'm a noob at scripting in Illustrator, but all of my search and trial and error didn't get me far.
I'm trying to select a specific text of a layer and change the visiblity in a Structure like this:
...
0
votes
0
answers
17
views
Save Illustrator file from text in the file using Illustrator actions
I'm saving a bunch of files and I would like to save them using selected text from the file using actions. Right now, I'm able to select the text and copy and paste in the file. But when the save as ...
0
votes
2
answers
38
views
Is there a way to read content of outline objects in Adobe Illustrator using script?
I have a .ai file which has a layer containing a bunch of nested outline objects (pathItem, compoundPathItems, ClipGroup, etc.). Example - a linear barcode containing rectangular lines with digits ...
0
votes
1
answer
257
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 ...
0
votes
0
answers
111
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, ...
0
votes
0
answers
238
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 ...
0
votes
0
answers
178
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 ...
-1
votes
1
answer
328
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 ...
0
votes
2
answers
123
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 ...
0
votes
0
answers
179
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 ...
2
votes
1
answer
387
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 ...
0
votes
0
answers
112
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 ...
0
votes
2
answers
314
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 ...
0
votes
1
answer
217
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 ...
2
votes
1
answer
264
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?
0
votes
1
answer
220
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 ...
0
votes
0
answers
60
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 (...
0
votes
1
answer
165
views
Saving user input data after each use in Illustrator
How can a make a .txt file to save user input data after each use?
I would like to save or store the "width" and "height" var until the next input.
var doc = app....
0
votes
1
answer
63
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"); ...
-1
votes
1
answer
274
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 ...
1
vote
2
answers
2k
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
0
answers
209
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
0
answers
60
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 ...
4
votes
1
answer
152
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
0
answers
154
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
1
answer
216
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 ...
1
vote
1
answer
444
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
1
answer
335
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 ...
2
votes
1
answer
229
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
0
answers
87
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
1
answer
72
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
1
answer
301
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
1
answer
34
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 ...
1
vote
2
answers
155
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
2
answers
577
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
2
answers
150
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 ...
2
votes
4
answers
1k
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
1
answer
798
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
1
answer
136
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
0
answers
51
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 ...