Overview
Automation scripts help you perform repetitive tasks quickly and consistently. These examples demonstrate common automation scenarios based on Aseprite’s actual test suite.Adding Outlines to Sprites
This script automatically adds an outline to the current sprite’s content:Automatically Resize Sprites
Resize all layers in a sprite to a specific size:Crop to Selection
Automatically crop sprites to the current selection:Auto-Trim Transparent Pixels
Remove empty space around sprites:Flatten Layers Automatically
Create Layer Structure
Automatically create a standard layer structure:Auto-Number Frames
Add frame numbers to each frame:Apply Color Adjustments in Bulk
Adjust brightness/contrast on all frames:Replace Colors Across Sprite
Replace all instances of one color with another:Create Animation Preview
Generate a contact sheet of all frames:Smart Selection by Color Range
Select all pixels within a color range:Apply Filter to Selection
Apply filters only to selected areas:Invert Colors
Quickly invert colors in the active sprite:Adjust Hue/Saturation
Shift hue or adjust saturation:Create Palette from Sprite
Extract unique colors and create a palette:Flip Sprites Automatically
Create Animated Rotation
Create frames with rotated versions:Export All Layers as Separate Files
Next Steps
Batch Processing
Process multiple files at once
Custom Tools
Create custom drawing tools
Scripting Introduction
Learn the basics of Aseprite scripting

