Skip to main content
Known Participant
March 19, 2018
Pergunta

Action/Script to sample color and fill

  • March 19, 2018
  • 1 resposta
  • 3527 Visualizações

Hello,

I'm looking for a very simple action to take an eyedropped color sample from the canvas and then simply fill that entire image with that color.

I swear this used to be possible on previous PS versions by just using a brush.

Can anyone help?

Este tópico foi fechado para respostas.

1 Resposta

pixxxelschubser
Community Expert
Community Expert
March 19, 2018

Yes, it is possible to write a script.

But you can create easily an action by yourself or simple use three shortcuts and one click:

  1. (select the Eyedropper tool)
  2. left mouse click with the Eyedropper tool (new foreground color from Eyedropper tool)
  3. [Shift]+[Alt]+[Strg]+ (creates a new layer above the active layer)
  4. [Alt]+[Backspace] (fill the new created layer with the new foreground color)

Are you able to create an action with step 3 and step 4 ?

  1. (select the Eyedropper tool)
  2. left mouse click with the Eyedropper tool (new foreground color from Eyedropper tool)
  3. start your new created action

The same is possible with a script.

Have fun

Kukurykus
Legend
March 19, 2018

Where have you found documented information of:

ALT & BACKSPACE to fill layer with foregroundColor?

Ps. is there shortcut to do same with backgroundColor?

pixxxelschubser
Community Expert
Community Expert
March 19, 2018

Hi Kukurykus​,

honestly? I do not know it anymore.

But I used this for years.

The shortcut for filling with background color is also quite simple: [Strg]+[Backspace]

And also for interesting for this thread: the Eydropper tool fills the background color with [Alt]+left-mouse-click

And not to forget: exchanges foreground and background color