Set Foreground Color to Text Color

D
Posted By
ddefenba
Jan 22, 2009
Views
356
Replies
7
Status
Closed
Is there an easy way set the foreground color to the color of a text layer without using the eyedropper or creating a swatch?

Dragging the color chip from the Character window no worky. Can’t seem to use the foreground Color Picker to select the color chip from the Character window either.

Thanks.

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

P
Phosphor
Jan 22, 2009
What is wrong with using the Eyedropper? That’s what it’s for.
D
ddefenba
Jan 22, 2009
Because with smaller aliased text it is sometimes very difficult to find a pixel to click on with the eyedropper that is 100% opaque and represents the true exact value of the text color. It becomes tiring zooming way in to try to find a pixel that appears to be 100% opacity and there is no real way to tell.
JM
J_Maloney
Jan 22, 2009
Sounds like a layer style would be better. You might even check the scripting forums for answers on how select all layers with a certain style applied for quick "master style" functionality.
P
Phosphor
Jan 22, 2009
I guess you could click on the color in the Options Bar and write out the color build from the Picker and use that. Seems kind of round about.
PR
Paul_R
Jan 22, 2009
Here you are, select the text layer with the colour you want and run this script…

#target photoshop
if(activeDocument.activeLayer.kind = LayerKind.TEXT){
app.foregroundColor = activeDocument.activeLayer.textItem.color; }
D
ddefenba
Jan 22, 2009
Sad part is I can open the text color picker and select the foreground color, but not vice versa.
D
ddefenba
Jan 22, 2009
Thanks for the script and the help.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections