Skip to content

mrussogit/photoshop-utils

Repository files navigation

Photoshop Script Collection

This repository contains a collection of useful Photoshop scripts that automate tasks within Adobe Photoshop, improving workflow efficiency for game development.

Table of Contents

Getting Started

To use these scripts in Adobe Photoshop, follow the instructions below:

  1. Open Adobe Photoshop.
  2. Go to File > Scripts > Browse.
  3. 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.

Scripts

1. Get Number of Selected Layers count

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


2. Export Coordinates exportcoordinates

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.


3. Regex in Layer Names

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.

regex


4. Batch Rename 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. 2024-09-09 09_55_09-Adobe Photoshop 2024


5. Export Layer Names exportnames

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published