This repository contains a collection of useful Photoshop scripts that automate tasks within Adobe Photoshop, improving workflow efficiency for game development.
To use these scripts in Adobe Photoshop, follow the instructions below:
- Open Adobe Photoshop.
- Go to
File
>Scripts
>Browse
. - Navigate to the location where you saved the script, select it, and click
Open
.
I recommend using Brusherator by Sergey Kritskiy for frequently used scripts.
This script retrieves the number of currently selected layers in the active Photoshop document and displays it in an alert box. This is useful if you are working on a number of items/layers and need to ensure accuracy (e.g., you must have exactly 30 layers).
This script exports the coordinates of layers in a xxxx,yyyy
format, which can then be used in game engines. It generates a .txt
file that contains the position information of the layers, simplifying the process of integrating graphics into your game.
This script allows you to find and replace text within layer names using regular expressions (regex). This is useful for batch renaming layers when you need to apply complex renaming patterns or clean up layer names in a Photoshop file with many layers.
This script enables batch renaming of layers by appending or prepending text to layer names. It is particularly useful when organizing large files with many layers, as you can quickly rename multiple layers at once without manual intervention.
This script exports the names of all layers in the Photoshop document to a .txt
file. This is useful when you need to reference layer names in a game engine, such as for labeling or organizing assets.