Copy link to clipboard
Copied
Hi, I can't English well 😞
In the past, even if you changed the color in the text layer, it was not immediately applied to the text.
It was applied to the text color only when I filled it.
but now, if I change a foreground color, it automatically applies to the text color.
It's fainful. so I'm looking for turn off option.
I cant' find that option, in type tool, preferences/general, type..
Is there any way to turn it off?
function restoreTextColor(){
var doc = app.activeDocument
if (doc.activeLayer.kind == LayerKind.TEXT){
var last = doc.historyStates.length - 1;
if (doc.historyStates[last].name == "Set Character Style"){
executeAction(charIDToTypeID('undo'), undefined, DialogModes.NO);
}
}
}
//EventHandler: Scripts/Script Events Manager...
try {
if (arguments.length >= 2){
var desc = arguments[0];
var event = arguments[1];
if (even
...
Copy link to clipboard
Copied
Oh.. It's painful.. not fainful.... haha
Copy link to clipboard
Copied
Could you please post screenshots taken at View > 100% with the pertinent Panels (Toolbar, Layers, Character, Options Bar, …) visible?
Did you actually select the Text or just the Type Layer?
Copy link to clipboard
Copied
not select Text, just Type Layer
Copy link to clipboard
Copied
I don't want to set character style.
I just want to change foreground color in text layer.
Because I'm working with many layers and when I change a foreground color,
I don't want to care about which layer I chage the color on.
Copy link to clipboard
Copied
I cannot make out the cursor in the recording, how exactly are you changing the Foreground Color?
If you do it via the Swatches Panel then the behaviour (setting the character style) was the same in Photoshop 2023.
Copy link to clipboard
Copied
and I've been using swatch along, before when I changed a color with swatch the text color didn't change.
The text color started changeing a few versions ago, but I can't remember when.
Copy link to clipboard
Copied
Well, that has apparently been the default behaviour for a while now.
Do you remember a Photoshop version in which it was definitely different?
You could post a Feature Request (»Idea«), but for now I see no option to avoid this and you may have to deselect the Type Layer; which could probably be Scripted and the Script assigned a Keyboard Shortcut.
A more complicated but fully automated approach might be involving the Script Events Manager to catch any setting of the Foreground Color.
Copy link to clipboard
Copied
Thanks for reply.
I need that option but it wasn't there.
I try scripting event manager 🙂
Wish me luck. thank you.
Copy link to clipboard
Copied
yap, I made script. It works.
If you want to fix this problem. try this.
1. Save the script below as a jsx file.
function restoreTextColor(){
if (app.activeDocument.activeLayer.kind == LayerKind.TEXT){
executeAction(charIDToTypeID('undo'), undefined, DialogModes.NO);
}
}
//EventHandler: Scripts/Script Events manager
try {
if (arguments.length >= 2){
var desc = arguments[0];
var event = arguments[1];
if (event == charIDToTypeID('setd')){
var ref = desc.getReference(charIDToTypeID('null'));
var cls = ref.getDesiredClass();
if (cls == charIDToTypeID('Clr ')){
var property = ref.getProperty();
if(property == charIDToTypeID('FrgC')){
restoreTextColor();
}
}
}
}
}
catch(e){}
2. Open Popup: Photoshop MainMenu/File/Scripts/Script Events Manager
3. Check: Enable Events to Run Scripts/Actions
4. Photoshop Event: Everything
5. Script: Browse...
6. Select that script file.
7. Add
then if you change foreground color in text layer.
Event handler get event, and undo Set Character Style.
Copy link to clipboard
Copied
Hmm …
What happens if you change the Foreground Color not via Swatches Panel but via another methos, like clicking the swatch in the Toolbar?
Copy link to clipboard
Copied
The event handler code I used is here.
he was explain that the user changes the foregroundColor using the colorPicker or eyedropper.
Copy link to clipboard
Copied
and Thanks to you, I found the bug.
Change foreground color in ColorPicker Popup, It's not adding auto Set Character Style.
It becames undo, which should not be done.
I'm studing script now, so I'll learn to history and fix it.
Copy link to clipboard
Copied
Thank you for helping me.
I was able to learn more about photoshop scripts and it was very enjoyable experience.
Copy link to clipboard
Copied
function restoreTextColor(){
var doc = app.activeDocument
if (doc.activeLayer.kind == LayerKind.TEXT){
var last = doc.historyStates.length - 1;
if (doc.historyStates[last].name == "Set Character Style"){
executeAction(charIDToTypeID('undo'), undefined, DialogModes.NO);
}
}
}
//EventHandler: Scripts/Script Events Manager...
try {
if (arguments.length >= 2){
var desc = arguments[0];
var event = arguments[1];
if (event == charIDToTypeID('setd')){
var ref = desc.getReference(charIDToTypeID('null'));
var cls = ref.getDesiredClass();
if (cls == charIDToTypeID('Clr ')){
var property = ref.getProperty();
if(property == charIDToTypeID('FrgC')){
restoreTextColor();
}
}
}
}
}
catch(e){}