Mobile app version of vmapp.org
Login or Join
Carla748

: Photoshop Scripting: batch replace colors I'm trying to write a script that will replace the colors of all same-colored shapes, including those on non-visible layers. I am new to Photoshop scripting,

@Carla748

Posted in: #AdobePhotoshop #PhotoshopScripting

I'm trying to write a script that will replace the colors of all same-colored shapes, including those on non-visible layers. I am new to Photoshop scripting, but I imagine the pseudocode would work something like this:


for (all shape layers)
if (fill color = #123456 )
fill color = #000000


Is this possible to do?

I tried running the script here, but got an error at 'executeActionGet' (This functionality may not be available in this version of Photoshop). I am using Photoshop CS6.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Carla748

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin459

I have used ChangeColor in the past to achieve this. Here is the GitHub repo > gist.github.com/theinsanecow/895810
It sounds like this is exactly what you're after, but even if it's just good as a reference point for your script, it should help.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme