John's Scripts 4 Adobe Illustrator 
- Install by saving in "C:\Program Files\Adobe\Illustrator CS\Presets\Scripts" or equivalent folder.
These scripts should run on both Windows and Mac platforms.
- Questions; comments: Send me a 'Hello'.
- To see what's new, read to my JS4AI Blog.
- For consulting & custom solutions, please inquire.
- Download all the scripts in a single zip file, or fork a script on GitHub
The Scripts (36 total):
 |
|
 |
|
|
|
Arc Twister v2.0
::
CS, CS2, CS3, CS4
|
|
|
To
download this script: right-click and select "Save Link As"
This script will twist an objects selected control handles
by the same amounts.
Current tweakable options are:
1) Left handles only
2) Right handles only
3) Mirror Angles (i.e.; rotates left handle x deg, right handle -x deg.)
4) Rotate Angles (Fixed relative to each other)
5) Change angles to Smooth (180 deg) and rotate.
Please Note:
I've created 3 interfaces for this script, and this is the most flexible and functional.
The first was using a kludgy basic 'prompt' dialog,
The second version used a swf interface that was slick, but encountered various issues during install.
This version uses Adobes JXS UI tools, so you get a dialog widget that is both easy to use, and works.
If you're using pre CS2, this script will gracefully fall back on the "prompt" interface.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
To
download this script: right-click and select "Save Link As"
Named after the "Fleur de Lis" as in "flower",
this script is the bastard love child of a Spirograph and the "Punk & Bloat" filter.
Enter a percentage to "fleurify" and the script turns basic geometry into flowery shapes.
Warning: the fleurified objects paths will self intersect. This shouldn't matter in print media, but
for cutable shapes you'll have to use the pathfinder palate to break and merge it.
Note: The anchors are never modified, only the control handles,
so you can always "un-fleurify" an object using my "sharpen corners" script.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
Join TextFrames v.2.1
::
CS,CS2
|
|
|
To
download this script: right-click and select "Save Link As"
When Adobe came out with the new CS text engine,
the text fields in documents saved in an older format were
often broken into "sub" fields.
This script is a rudimentary tool to help
rejoin the broken text fields. It works best on individual lines of horizontal text.
It collects text from any number of selected (non-grouped) textframes
and aggrigates them into a single text frame.
the order is based on relative x,y coordinates.
If a selected text anchors vertical coordinate is the same as the next one,
text areas are assumed to be on the same line.
If a selected text anchors vertical coordinate is different,
the text areas are assumed to be sequential lines,
This script WILL NOT make any attempt to maintain visual integrety of
character placement. It will only join the fields for easier editing,
but sometimes, just this little bit is a HUGE time saver.
As of Version 2.0 an option is given to maintain the individual styling of each letter.
See first lines of the script for details.
the sensitivity of what is considered "the same line" can
be adjusted by setting the "verticalTolerance" variable
near the top of the script (just below the style arrays).
but please note, it is assumed that all selected text is on a horizontal plane.
If you wish to join rotated textfields, you will have to unrotate them first.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
To
download this script: right-click and select "Save Link As"
Randomizes all selected anchors by a selected number of points.
Enter small numbers to make objects look hand drawn.
Enter larger numbers to make objects look organic.
Enter even larger numbers to distort beyond recognition.
V.2 now offers a choice for randomizing 'Anchors Only', 'Control Handles Only' or both.
(click here to view sample image.)
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
organize v1.4
::
CS,CS2,CS3,CS4,CS5
|
|
|
To
download this script: right-click and select "Save Link As"
A quick way to sort selected items by a given attribute.
For example, use this script to arrange items from left to right based on their height.
Another example is to change a group of items z-order position based on volumetric area.
More complexly, you can re-assign height based on x position.
Items can be sorted on (h)eight, (w)idth, (a)rea, (x)-axis, (y)-axis, (o)pacity, (z)-order)
Sort directions are small-to-large, large-to-small, and random.
Use most effectively in combination with the align palette to redistribute objects in new
powerful ways.
v1.1: changed wording for clarity,
added option to keep existing values, vs. align evenly.
and fixed prompt values displaying correctly. (thanks Egor)
v1.2: Fixed inconsistant spacing issue with autoAlign option
v 1.3: added a shortcut option in the first prompt.
v 1.4: Much better error handling.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
Select Paths By Size v.4.1.1.0
::
CS, CS2, CS3,CS4 (Change extension from 'jsx' to 'js' to run in CS)
|
|
|
To
download this script: right-click and select "Save Link As"
Selects all Path Objects, smaller/larger than given threshold
Only works for path and compound path objects.
If paths are selected, script runs on selected items only,
If nothing is selected, script runs on all paths in document.
::: Updates in V2 :::
• Rebuilt to select based on Size, Area, Width or by Height.
• Added "same size as" option
• If one object is selected, starts threshold at that size.
• Added Tool Tips
::: Updates in V3 :::
• Added status indicator
• Rebuilt processing engine so it's faster and more accurate
::: Updates in V4 :::
• Added progress bar (CS3 and above)
• Speed increase
::: Update v4.1 :::
• Select by stroke weight (patched in 4.1.1)
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
Set All The Things v.1.2
::
CS,CS2,CS3,CS4
|
|
|
To
download this script: right-click and select "Save Link As"
Wanna Batch Transform objects? Illustrator has built in tools to resize each selected item,
but only by percentage, not by hard values. I made this script because I could find no
native way to set the width of all selected objects to 100px at once.
This script can accept multiple parameters at once.
To change, for instance, both width and height at the same time,
at the 'attributes' prompt, enter width,height
then at the 'values' prompt, enter a comma separated value list like 20,30
If a single value is passed for 'values', that value will be applied to all chosen properties.
Common legal parameter names include, but are not limited to: width,height,top,left.
Install and use explore.js on an object to see what other properties can be set.
Update: Based on feedback from user Jode, You are now given the option to transform objects from center.
You can now also use whatever standard units you like and the script will convert them into pixels.
e.g., you can enter "30mm" or "12in" and the script will know what you mean.
v1.2 adds decimal support and explicit 'px' and 'pt' units to the regex. (thanks to Cristofer Cruz for noticing the bug)
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
To
download this script: right-click and select "Save Link As"
User selects two objects:
this script swaps position and size of the two objects.
Version 2 update: now adjusts stroke based on difference in area.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
To
download this script: right-click and select "Save Link As"
This script creates and exports seamless JPG or PNG tiles.
It's purpose is to help generate quick seamless tiled backgrounds for web pages.
To use this script: create a crop area,
( Object>Crop Area>Make )
and draw some objects within it.
IMPORTANT: Overlap objects to the BOTTOM and the RIGHT side of the crop area only.
Objects that extend beyond the top or the left of the crop area will be ignored.
To create a tile:
select all items in the crop area, and run the script.
This will copy all objects that overlap the bottom and right crop
areas to the opposite side of the crop area, creating a perfect tile.
To Export as JPG:
Re-run the script with nothing selected. The script will ask for a destination.
Export options are JPG or PNG.
Notes: Objects are copied to the bottom of the same layer as it's source object.
This is so the user can create multiple tiles on other layers without problems.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |
 |
|
 |
|
|
|
Vary Hues / Randomize Colors v1.2
::
CS, CS2, CS5
|
|
|
To
download this script: right-click and select "Save Link As"
This script is designed to create color variations such as seen in brick walls, or stone walkways.
When one or more objects are selected,
the script provides a prompt to the user with the following three options:
To vary the object(s) fill colors, enter a number from 0 to 100. 100 is maximum.
To vary the object(s) strokes, add an 's' after the number like this: 42s
The last option is slightly different, instead of entering a number for the variance,
the user enters an opacity range.
To vary the object(s) transparencies enter two comma separated numbers
representing the minimum and maximum like this: 23,44
Since the color values of spot colors by definition cannot be adjusted, the tint is randomized instead.
Gradients and Patterns are not affected.
Masked, or symbol objects are generally ignored.
Update now processes groups and compound path items.
added alert for wrong colorspace.
|
back to the script index (top of page)
|
|
|
|
 |
|
 |