Skip to content

Instantly share code, notes, and snippets.

View creold's full-sized avatar
👷‍♂️

Sergey Osokin creold

👷‍♂️
View GitHub Profile
@creold
creold / AddRectangleAroundObject.jsx
Last active March 12, 2024 13:26
Creates rectangles with specified margins around each selected objects. Adobe Illustrator script
/*
Creates rectangles with specified margins around each selected objects
Version for create squares: https://gist.github.com/creold/b6f2dc2c61d0a497a9264ba114df055a
Author: Sergey Osokin, email: hi@sergosokin.ru
Based on code by Joshb Duncan @joshbduncan
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
@creold
creold / AddSquareAroundObject.jsx
Last active March 12, 2024 13:26
Creates squares with specified margins on the larger side of selected objects. Adobe Illustrator script
/*
Creates squares with specified margins on the larger side of selected objects
Discussion: https://community.adobe.com/t5/illustrator-discussions/is-there-any-way-to-add-absolute-square-with-entering-margin-value-around-selected-objects/td-p/14459111
Author: Sergey Osokin, email: hi@sergosokin.ru
Based on code by Joshb Duncan @joshbduncan
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
@creold
creold / GrayOpacityMaskFix
Last active March 12, 2024 13:26
Converts selected Grayscale opacity masks to RGB to correct sharp edges due to black depth. Adobe Illustrator script
/*
Converts selected Grayscale opacity masks to RGB to correct sharp edges due to black depth
Attention: Before running the script, manually select objects with opacity masks.
Use the free SelectMenu plugin by Rick Johnson to select masks https://rj-graffix.com/downloads/plugins/.
Select > Object > Special Art Types > Opacity Masks
Warning: Don't put this script in the action slot for a quick run. It will freeze Illustrator.
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
@creold
creold / InsertGroupNameAsText.jsx
Last active March 12, 2024 13:26
Replace top text frame contents within selected group with its name. Adobe Illustrator script
/*
Replaces top text frame contents within selected group with its name
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
- via DonatePay https://new.donatepay.ru/en/@osokin
@creold
creold / LanguageSwitcher.jsx
Last active March 12, 2024 13:26
Quick access palette for changing favorite languages. Adobe Illustrator script
/*
Quick access palette for changing favorite languages in the Character panel for selected text or selected text frames.
Language types:
ENGLISH, FINNISH, STANDARDFRENCH, CANADIANFRENCH, STANDARDGERMAN, OLDGERMAN,
SWISSGERMAN, ITALIAN, BOKMALNORWEGIAN, NYNORSKNORWEGIAN, STANDARDPORTUGUESE,
BRAZILLIANPORTUGUESE, SPANISH, SWEDISH, UKENGLISH, DUTCH, DANISH, CATALAN, RUSSIAN,
UKRANIAN, BULGARIAN, SERBIAN, CZECH, POLISH, RUMANIAN, GREEK, TURKISH, ICELANDIC,
HUNGARIAN, CHINESE, JAPANESE, ARABIC, FARSI, GERMAN2006REFORM, DUTCH2005REFORM, SWISSGERMAN2006REFORM,
HINDI, MARATHI, BENGALIINDIA, PUNJABI, GUJARATI, ORIYA, TAMIL, TELUGU, KANNADA, MALAYALAM
@creold
creold / RecolorTextLines.jsx
Last active March 12, 2024 13:26
Recolor text lines in specified HEX, RGB, or CMYK colors or in selected swatches. Adobe Illustrator script
/*
Recolor text lines in specified HEX, RGB, or CMYK colors or in selected swatches
Discussion: https://community.adobe.com/t5/illustrator-discussions/can-i-automatically-colorize-every-text-line-in-a-text-with-a-selected-color-swatch/m-p/14152682#M383649
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
- via DonatePay https://new.donatepay.ru/en/@osokin
@creold
creold / replaceSwatchGroup.jsx
Last active March 12, 2024 13:26
Switches the spot colors in the specified swatch group to the spot color values of the selected group. Adobe Illustrator script
/*
Switches the spot colors in the specified swatch group to the spot color values of the selected group or by index matching
Discussion: https://community.adobe.com/t5/illustrator-discussions/a-script-to-look-at-one-group-og-swatches-and-replace-with-another-group-of-swatches/td-p/14070309
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
- via DonatePay https://new.donatepay.ru/en/@osokin
@creold
creold / resetTextNames.jsx
Last active March 12, 2024 13:27
Reset custom names for text objects to display their contents. Adobe Illustrator script
/*
Reset custom names for text objects to display their contents
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
- via DonatePay https://new.donatepay.ru/en/@osokin
@creold
creold / textBlock.jsx
Created August 17, 2023 08:25
Converts selected point textFrames into a Block of Text. Adobe Illustrator script
//@target Illustrator
// script.name = textBlockLive.jsx;
// script.description = converts selected point textFrames into a Block of Text;
// script.required = one document with at least two selected Point Text frames;
// script.parent = carlos canto // 12/4/11; Update 03/15/205 added User Defined Units, cosmetics
// script.modification = sergey osokin // 08/12/23; keep text editable, sort texts by Y, cosmetics
// script.elegant = false;
function main() {
@creold
creold / swatchLegendAsText.jsx
Last active March 12, 2024 13:27
Output swatches as a group of text objects, with each name colored with the swatch. Adobe Illustrator script
/*
Output swatches as a group of text objects, with each name colored with the swatch
Discussion: https://community.adobe.com/t5/illustrator-discussions/simple-script-is-it-possible/td-p/13944314
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin