How to change colour across multiple layers in Photoshop CS6


Question

I've seen this type of question asked before, but I've not seen a satisfactory answer:

I have a specific colour palette, and I can not stray from it at all; I have a specific green (32,144,24) on 93 layers, and I want to change it to a specific blue (24,32,144) on every layer. I have 3 different colours on each layer, and multiple palettes to go through and export (93 layers * 3 colour replacements * X number of palettes = no way I'm doing it manually.)

Because of that, I decided to look for a script to do it for me. I found two such scripts, but they both return errors when running, and do absolutely nothing.

I have no experience with javascript, so I wouldn't even know where to begin with writing my own script.

Met with no luck on my own, I decided to ask the internet for help.

Thanks in advance for actually reading the OP and offering any relevant advice.
-John Shmoe

Edit: Two such topics I've viewed that yielded no results:
Replace individual colors in multiple layers
Change the color of multiple layers at once in CS4

Example:
enter image description here
Replace colour 1 with colour A, colour 2 with colour B, etc. on every layer
(again, imagine there are so many that doing it one-by-one would be ridiculous to even suggest.)

1
4
4/13/2017 12:46:00 PM

As I said in the comments use Replace Color. True, you'll need to run it for each layer (although you could do it for every layer automatically, keep reading) but it will be much faster than using the fill tool.

Why is that? Well because you can turn replace color into an action. This will require some initial set-up:

  1. Go to your layer and replace color. Before hitting apply, make sure you save it.
  2. Repeat step one for each color you want to replace on the layer.
  3. Create an action.
  4. While the action is recording, go to Replace Color and load your saved files and apply them.
  5. Repeat step 4 for each one you saved in step 1.
  6. Stop the action.

Now you can do this action (and assign it to a keyboard shortcut for speed) and repeat it for every layer.

You can do this for all layers as well but the process will be a bit more drawn out and really is only worth it if you have a lot of layers.

Do as I said above, and create the action. Then go to File -> Scripts -> Export Layers To Files... and go through that process. Now with each layer being saved out as its own image go to File -> Automate -> Batch and select your directory of images and the action you created. Run that.

If you're happy with that, you're done! Otherwise, if you want all your images back in one PSD go to Bridge and select your directory of images and go to Tools -> Photoshop -> Load Files into Photoshop Layers...

Now you should have what you started with more or less but with adjusted colors.

Any other solution would probably have to rely on external scripting, but that is also a worthwhile skill to learn.

2
1/28/2016 3:40:00 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow


Website under construction!!!
^