Skip to main content
Inspiring
July 8, 2024
Answered

Alter colour of all text layers at once CS6

  • July 8, 2024
  • 3 replies
  • 888 views

Hi,

I have my text layers in the same colour and wish to change it to another colour.

I am CS6

How is this done ?

I follow a method select text layers , select T at top, click colour box and nothing happens.

By colour Box I presume the coloir picker, where I have the new colour waiting.

Maybe that works for a later version.

 

Merlin

This topic has been closed for replies.
Correct answer Jeff Arola

After you click on the color chip in the type tool options you could use the eyedropper to click on the Foreground color chip in the tools panel.

3 replies

Jeff Arola
Community Expert
Jeff ArolaCommunity ExpertCorrect answer
Community Expert
July 9, 2024

After you click on the color chip in the type tool options you could use the eyedropper to click on the Foreground color chip in the tools panel.

Stephen Marsh
Community Expert
Community Expert
July 9, 2024

Doh! Well said @Jeff Arola 

Stephen Marsh
Community Expert
Community Expert
July 8, 2024

I have to copy paste the hex value or write down the RGB and type these into the colour box at the top menu, then it works.


By @Merlin3

 

 

I'm not sure if the following code works with CS6. It will copy the foreground colour as a hex code to the clipboard, which you can then paste into the text colour swatch for the selected text layers:

 

/* Based on - https://gist.github.com/Arahnoid/9923989 */
var fR = Math.floor(app.foregroundColor.rgb.red);
var fG = Math.floor(app.foregroundColor.rgb.green);
var fB = Math.floor(app.foregroundColor.rgb.blue);
rgbToHex(fR, fG, fB);
function rgbToHex(r, g, b) {
    var theHex = "#" + ((1 << 24) + (r << 16) + (g <<  + b).toString(16).slice(1);
    //var theHex = ((1 << 24) + (r << 16) + (g <<  + b).toString(16).slice(1);
    // theHex = theHex.toUpperCase();
    
    var d = new ActionDescriptor();
    d.putString(stringIDToTypeID("textData"), theHex);
    executeAction(stringIDToTypeID("textToClipboard"), d, DialogModes.NO);
}

 

Jeff Arola
Community Expert
Community Expert
July 8, 2024

It depends on how many text layers you have, so you can select your first text layer then Ctrl click on every other text layer till they are all selected. (Ctrl click to the right of the layer name to select a layer)

or

Click on Kind in the layer filter, click on the T, then go to Select>Select all Layers.

Then click on the Horizontal Type Tool in the tools panel and click on the color swatch in the tool options bar to change the color of all the text layers.

 

Merlin3Author
Inspiring
July 8, 2024

Hi,

I can select the colour at top menu and it changes, but selecting the colour in the left side coloir picker doesnt change, I have to copy paste the hex value or write down the RGB and type these into the colour box at the top menu, then it works.

 

I always mix my colours using the left hand side box, so its a pain that one doesnt alter the text colours.

is there a trick in migrating the mix there to the top most box that is for text colours ?

 

I often find I have dabbled with coliurs for my text at left, then during editing find the upper box hasnt the colour.

 

Merlin

Stephen Marsh
Community Expert
Community Expert
July 8, 2024
quote

I often find I have dabbled with coliurs for my text at left, then during editing find the upper box hasnt the colour.

 

Merlin


By @Merlin3

 

 

You need to use the Text fill colour swatch to "dabble" with the colour of selected text layers, not the foreground colour swatch.

 

Do it as @Jeff Arola recommends, adjust your workflow to what Photoshop requires.

 

A script could apply the foreground colour to all text layers or only selected text layers, however, as you use CS6 you may not find someone with that old version who knows how to script this. As this will most likely require Action Manager code, newer version of Photoshop may not produce backwards compatible AM code.