A collection of Actions and Extendscript scripts for various Adobe products
Prepare Selection for Sketch
outlines the stroke of the selection, unifies the path, converts it to a compound path and copies to the clipboard ready for pasting into Sketch (uses the wholePixelResize script.
- Download the files
- Move or copy
Illustrator/Actions/Sheedy Actions.aia
into/Applications/YOUR_VERSION_OF_ILLUSTRATOR/Presets/en_US/Actions/
- Open Illustrator
- Select the artwork that you want to prepare for Sketch
- Open the Actions Panel and select "Prepare Selection for Sketch" then click the play icon at the bottom of the panel
- Switch to Sketch and paste
If the action does not show up, click the fly-out menu from the actions panel and select "Load Actions..." and navigate to the above folder.
Illustrator has a bug in it when it comes to scripts. If you don't see wholePixelResize
listed in the steps of the action under Make Compond Path
, follow these steps:
- Rollover (yeh, really, rollover)
File > Scripts > wholePixelResize
- Select
Make Compond Path
in the list of steps in the action - From the Actions fly-out menu,
Record Again
thenInsert Menu Item
- Select
File > Scripts > wholePixelResize
- From the Actions fly-out menu again
Stop Recording
It should look like the image below.
Proportionally resizes width and height of selection to nearest whole pixel value then scales height disproportionally to nearest whole pixel.
- Download the files
- Move or copy
Illustrator/Scripts/wholePixelResize.jsx
into/Applications/YOUR_VERSION_OF_ILLUSTRATOR/Presets/en_US/Scripts/
- Open Illustrator
- Select the artwork that you want to resize
- Select
File > Scripts > wholePixelResize