Friday, March 26, 2010

Set Foreground Color to Text Color

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.
Set Foreground Color to Text Color
What is wrong with using the Eyedropper? That's what it's for.
Set Foreground Color to Text Color
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.

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.

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.

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;

}




Sad part is I can open the text color picker and select the foreground color, but not vice versa.

Thanks for the script and the help.

No comments:

Post a Comment