• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Action/Script to sample color and fill

Explorer ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

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?

TOPICS
Actions and scripting

Views

3.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

Where have you found documented information of:

ALT & BACKSPACE to fill layer with foregroundColor?

Ps. is there shortcut to do same with backgroundColor?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

I had to google Strg translated to Strong, to get to know for Germans it's Ctrl / control

the Eydropper tool fills the background color with [Alt]+left-mouse-click

It doesn't work for me, are you sure it's correct, can you give some example?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

Opps. Sorry my mistake.

Eyedropper tool fills foreground color with left mouse click (like I said before)

and the background color with [Strg/Ctrl]+left mouse click (and not with [Alt] )

Excuse

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

You were correct about ALT/CTRL with LMB to fill with back/foregroundColor. Problem is with Eyedropper... - no matter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

wait a minute

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

How did you know I'm going to sleep? Okey, then I'm still here

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2018 Mar 19, 2018

Copy link to clipboard

Copied

standard foreground and background color in CC2018

foreground_backgroundColor_Standard.png

Eyedropper tool with LMB changes foreground color

foregroundColor_LMB.png

Eyedropper tool with [Strg/Ctrl]+LMB changes background color

backgroundColor_Strg+LMB.png

Sorry, I still try:

PS_foreground_backgroundColor from pixxxelschubser on Vimeo.

How to change the PS foreground and background color with the Eyedropper tool

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

LATEST

[Shift]+[Alt]+[Strg]+ (creates a new layer above the active layer)

I forget to mention that I didn't know too. Only Shift & Alt & Ctrl to make new layer, that's enforcing dialog though.

Don't you use newest 19.1.2 update but 19.1 still? Maybe because of some bug you found?

Something went wrong: there are 4 videos, but thx for posting. Now I understand.

You did not mention you use Swatches with eye-dropper. It is why it did not work for me.

I add when you use Eydropper on image then you can use Alt (not Ctrl like with swatches) to set background color.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines