Skip to main content
Known Participant
April 11, 2022
Answered

Workflow: Is there a faster way to change the color of a layer on multiple images randomly

  • April 11, 2022
  • 2 replies
  • 3595 views

That may or may not have made sense in terms of a title, but let me explain. I am working on a project that has a component of which that deals with HEX color. Let's say I have 100 images. The vector I am using has only 2 layers. One of those layers I need to change the color to a random HEX color, and put it on a gradient background. I initially thought maybe a photoshop action but it has an issue with the random nature of the color. I also search and found scripts that will randomly change the color of multiple pieces of an image (like dots, shapes etc,) but nothing that comes close to what I am trying to accomplish. There is a possibility I am thinking beyond the capabilities of the software at this point, but I figured I would try one last avenue to see if anyone had any other ideas I haven't googled yet. My apoligies if I am not asking this question the right way. Basically I need a script of workflow that completes this for over 100 images. Thank you.

This topic has been closed for replies.
Correct answer Kurt Gold

There is a beautiful script called "Randomus", provided by Alexander Ladygin. Among other things it may do exactly what you are looking for.

 

 

See: Randomus

 

2 replies

Kurt Gold
Community Expert
Kurt GoldCommunity ExpertCorrect answer
Community Expert
April 12, 2022

There is a beautiful script called "Randomus", provided by Alexander Ladygin. Among other things it may do exactly what you are looking for.

 

 

See: Randomus

 

Known Participant
April 12, 2022

Thank you I'll have to check that out. I saw it in my initial research but assumed it was for something other than what it is I am trying to do. Reading the docs there may be a way to configure it to my liking. Appreciate the resource my friend

R Ninja
Kurt Gold
Community Expert
Community Expert
April 12, 2022

You may want to trust me. Alexander's script will do what you are going to do.

 

You may have to experiment a bit with it.

 

CarlosCanto
Community Expert
Community Expert
April 11, 2022

can you share a sample file?

Known Participant
April 11, 2022

Each on of these images has two layers. The mouth/eyes (1), and the body (2). Instead of going through hundreds of them I am looking of way to randomly generate a unique HEX color for the entire batch. Just changing the body (2) to a random HEX. 

R Ninja
Known Participant
April 11, 2022

My apoligies. I do mean vector graphics, not "images," and I am referring to paths not "layers." I'm not as familar with Illustrator as you and I appreciate your patience. The layer term came from the fact that it literally says layers, but I stand corrected. When you asked for a sample file, I was unaware that it was and .ai that was needed but I understand now. Thank you. As to your last two questions, either selecting from a predefined swatch, or some kind of script would be amazing, and considering I am learning all kinds of lessons on here today, it sounds like you may have an idea. I included the file as well as a screenshot of layer's panel. Seems like I'm getting closer to knowing what it is I am actually asking. I appreciate your knowledge.

 


Not sure why the file did not attach to the previous post, but here we go.

R Ninja