Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
ai
 
 
ps
 
 
 
 
 
 
 
 

header

Ai / Ps Scripts

Behance Instagram Dribbble

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

  1. Download archive and unzip.
  2. Place <script_name>.jsx in 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\
  3. 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 ☕️ via PayPal, ЮMoney or Donatty 🙂

🖋 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.

CenterClipsToArtboards

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.

CycleGradient

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.

DistributeGradientStops

ExportToDXF

Export multiple artboards with visible unlocked contents or selection to separate DXF files for CAD systems.

ExportToDXF

GrayscaleToOpacity

Convert selection colors to Grayscale and set identical Opacity value.

GrayscaleToOpacity

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.

MakeEnvelopesWithTops

MoveArtboards

Script for moving artboards range with artwork along the X and Y axis.

MoveArtboards

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.

MoveToGroup

NumeratesPoints

Numerates selected points and marks them with colored circles.

NumeratesPoints

ObjectsCounter

Counts the number of selected objects.

ObjectsCounter

OpacityMaskClip

The script activates Clip checkbox in Transparency > Opacity Mask.

OpacityMaskClip

RemoveGradientStops

Removes intermediate color stops of gradient fill and stroke for selected objects.

RemoveGradientStops

RenameArtboardAsLayer

The script renames each Artboard by the custom name of Layer with the first visible unlocked item on it.

RenameArtboardAsLayer

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

RenameArtboardAsSize

RoundCoordinates

The script rounds the coordinates of each selected object. The reference point gets from the Transform panel. Works with document units.

RoundCoordinates

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.

RenameArtboardAsTopObj

ResizeOnLargerSide

Resize of the selected objects to the specified amount on the larger side. Works with document units.

ResizeOnLargerSide

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.

ReverseGradient

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.

SelectBySwatches

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

StrokesWeight

SyncGlobalColorsNames

Syncs the names of the same global colors between open documents. After that, all changes will be saved.

SyncGlobalColorsNames

🖌 Adobe Photoshop Scripts

ClearLayer

Simple script to clear layers content.

ClearLayer

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; .

ClearLayer

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]'.

ToggleLayersLocksByName

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

About

Drafts and unsorted JSX scripts for Adobe Illustrator, Photoshop

Topics

Resources

License

Releases

No releases published

Packages

No packages published