Skip to main content
Participant
May 23, 2023
Question

Can I record an action that changes the eyedropper sample?

  • May 23, 2023
  • 3 replies
  • 667 views

I'm someone that works with a lot of layers, and I toggle between sampling "all layers" and "current layers" with my eyedropper tool a lot.

I'm trying to record and create an action where I can quickly switch between my eyedropper sampling "all layers" and "current layers" with a shortcut, however I can't seem to be able to record anything I do with the eyedropper, except eyedropping a color in the canvas (which is something I don't want). I can't seem to find the option to change that in the keyboard shortcuts preferences menu as well.

Is there a solution for this? Or do I have to go through a bunch of clicks everytime I wan't to change my eyedropper sample?

3 replies

Legend
May 24, 2023

Record in Action the choice of the desired preset for the tool.

Zesty_wanderlust15A7
Known Participant
May 23, 2023

This script does it w/o recording anything (you can assign a keyboard shortcut to an individual script). It toggles between Current and Current & Below. It contains info on how to adapt it for All Layers.

https://community.adobe.com/t5/photoshop-ecosystem-discussions/here-is-a-script-that-switches-toggles-sample-mode-option-for-tools-that-support-it/m-p/12408454

 

You also have to specify false for this one (true will have it go through all options)...

var includeAllOptions = false;

 

and I would make the two changes that r-bin pointed out.

 

Seems it works for all tools that have these dropdowns.

Zesty_wanderlust15A7
Known Participant
May 23, 2023

I have not pondered on what you want, but you might need this selected...

If it's greyed out, try again after removing the scriptListener plugin if you are using that.

Participant
May 23, 2023

I've already selected that, and it still doesn't record my actions with the eyedropper, or even when i select the eyedropper tool. I've also tried adding a menu item but that doesn't seem to be relevant to the eyedropper tool?

Zesty_wanderlust15A7
Known Participant
May 23, 2023

Yeah, some things don't record and then you have to make a tool preset for that tool and record selecting that preset.

No idea what you mean with the last line. Some menu items you should not record (but often you can), but you have to use the special option in the flyout.