Ai / Ps Scripts
Instructions in other languages: English, Русский
This is a collection of some little scripts or drafts has not included in the catalog.
▶️ How to run scripts
Variant 1 — Install
- Download archive and unzip.
- Place
<script_name>.jsxin the Illustrator or Photoshop scripts folder:- OS X:
/Applications/Adobe Illustrator (or Photoshop)/Presets/Scripts - Windows (32 bit):
C:\Program Files (x86)\Adobe\Adobe Illustrator (or Photoshop)\Presets\Scripts\ - Windows (64 bit):
C:\Program Files\Adobe\Adobe Illustrator (or Photoshop) (64 Bit)\Presets\Scripts\
- OS X:
- Restart program
Variant 2 — Drag & Drop
Drag and drop the script file (JS or JSX) into Illustrator Window, Photoshop icon on dock (Mac), taskbar (Win).
Variant 3 — Use extension
I recommend the Scripshon Trees or LAScripts panel. In it you can specify which folder your script files are stored in.
💸 Donate (optional)
If you find this script helpful, you can buy me a coffee
🖋 Adobe Illustrator Scripts
CenterClipsToArtboards
Align the clip groups and their contents to the center of the parent artboards. You can also align all the selected clip groups on a single artboard.
CycleGradient
- CycleGradientBackward.jsx
- CycleGradientForward.jsx
- CycleGradientRandom.jsx
A set of 3 scripts that change the color order of gradient stops. The position of the stops and opacity don't change. Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button.
DistributeGradientStops
Distributes uniform spacing between all the gradients stops without changing the position of the outermost stops. Unfortunately, the copied gradients are one swatch in the Illustrator. Manually break the link by changing the gradient twice with the Reverse Gradient button.
ExportToDXF
Export multiple artboards with visible unlocked contents or selection to separate DXF files for CAD systems.
GrayscaleToOpacity
Convert selection colors to Grayscale and set identical Opacity value.
MakeEnvelopesWithTops
Distorts the selected bottom object by the top selected objects separately. Similar to the multiple run of the command Object > Envelope Distort > Make with Top Object.
MoveArtboards
Script for moving artboards range with artwork along the X and Y axis.
MoveToGroup
If the selected objects contain a group, it moves all the objects into it. The order is preserved: the objects above the group are placed inside at the top, the lower ones at the bottom of the group. If there are several groups, you choose in the dialog box where to move: to the top or to the bottom group.
NumeratesPoints
Numerates selected points and marks them with colored circles.
ObjectsCounter
Counts the number of selected objects.
OpacityMaskClip
The script activates Clip checkbox in Transparency > Opacity Mask.
RemoveGradientStops
Removes intermediate color stops of gradient fill and stroke for selected objects.
RenameArtboardAsLayer
The script renames each Artboard by the custom name of Layer with the first visible unlocked item on it.
RenameArtboardAsSize
The script names the artboard by its size in pixels. If you don't want save Artboard name, but replace with his size, change var SAVE_NAME = true; in the script file to false
RoundCoordinates
The script rounds the coordinates of each selected object. The reference point gets from the Transform panel. Works with document units.
RenameArtboardAsTopObj
The script renames each Artboard by the custom name of the first visible unlocked item on it. If the top object is text, its contents will be the name of Artboard.
ResizeOnLargerSide
Resize of the selected objects to the specified amount on the larger side. Works with document units.
ReverseGradientColor
Reverse the order of gradient colors and their opacity. Does not reverse the locations of color stops. If a gradient is copied from another object with the Eyedropper Tool (I), the Illustrator will think that they have the same gradient. Use the Reverse Gradient button in the Gradient panel instead then.
SaveAllDocs
Save all opened docs in one click.
SelectBySwatches
The Magic Wand tool selects objects that match the color of the sample. Selecting samples with the Shift key will select items of different colors. The script will select items if a fill or stroke color matches the colors selected in the Swatches panel.
StrokesWeight
- StrokesWeightDown.jsx
- StrokesWeightUp.jsx
A set of two scripts that change the weight of the strokes of the selected paths relative to the current ones. To round weights, set the variable isRoundWeight = true otherwise isRoundWeight = false.
- +/- 0.01 if weight <= 0.1
- +/- 0.2 if < 1
- +/- 0.5 if < 5
- +/- 1 if >= 5
SyncGlobalColorsNames
Syncs the names of the same global colors between open documents. After that, all changes will be saved.
🖌 Adobe Photoshop Scripts
ClearLayer
Simple script to clear layers content.
GeneratePreview
Generate JPG preview image from active document. Supports multiple saving with auto-numbering. If you want to change JPG size, edit number in script file var jpegSizeMax = 1200; .
SaveAll
Save all opened docs in one click.
ToggleLayersLocksByName
Locks layers in the document based on the keyword in the name. Open the script file with a text editor if you want to specify another keyword and replace the text in quotes key = '[lock]'.
Don't forget sharing link with a friend 🙂
🤝 Contribute
Found a bug? Please submit a new issues on GitHub.
Contact
Email hi@sergosokin.ru
📝 License
All scripts is licensed under the MIT licence
See the included LICENSE file for more details
























