Copy link to clipboard
Copied
HI everyone.
Have you any solutions to copy CMYK values to clipboard ?
David
Copy link to clipboard
Copied
Yeah sure! Go to the image menu bar then mode then CMYK marge.
Copy link to clipboard
Copied
What exactly do you mean?
Do you want to copy the information in the form of text or as image data (in which case tmyusf74’s post should have should address the issue)?
Copy link to clipboard
Copied
No, there isn't answer
Copy link to clipboard
Copied
How does this not meet your needs?
Copy link to clipboard
Copied
Did you save the code to a jsx-file and put it in Photoshop’s Presets/Scripts-Folder?
Copy link to clipboard
Copied
#target photoshop
var check = app.showColorPicker();
var theColor = "cyan "+Math.round(app.foregroundColor.cmyk.cyan)+"\nmagenta "+Math.round(app.foregroundColor.cmyk.magenta)+"\nyellow "+Math.round(app.foregroundColor.cmyk.yellow)+"\nblack "+Math.round(app.foregroundColor.cmyk.black);
copyTextToClipboard(theColor);
function copyTextToClipboard( txt ) {
const keyTextData = app.charIDToTypeID('TxtD');
const ktextToClipboardStr = app.stringIDToTypeID( "textToClipboard" );
var textStrDesc = new ActionDescriptor();
textStrDesc.putString( keyTextData, txt );
executeAction( ktextToClipboardStr, textStrDesc, DialogModes.NO );
};
Edit:
Adobe should to include that function to the Photoshop.
Photoshop offers considerable customisability through features like Edit Toolbar, Keyboard Shortcuts and Menus, but also Actions, Scripts (for those familiar with JavaScript, VB or AS), html5-Panels (for those with html-knowledge) and plug-ins (for those familiar with C++) so some features, in particular those that would likely benefit only a small number of Photoshop users, which can be attained by any of those means do not seem very likely to be implemented in Photoshop by default.
Copy link to clipboard
Copied
c.pfaffenbichler ! This is incredible. Thank you! Man. The case is closed.
... Why I'am not written here earlier. Where I heave been? ...
Copy link to clipboard
Copied
I have changed only the output data, to be clearer for me.
thanks
Copy link to clipboard
Copied
Copy link to clipboard
Copied
For example: I need copy thise CMYK values to clipboard and next paste it, to the txt files for example.
Maybe someone knows any solution for that ? It will help me a lot.
Copy link to clipboard
Copied
You could use a Script:
#target photoshop
var check = app.showColorPicker();
var theColor = "cyan "+app.foregroundColor.cmyk.cyan+"\nmagenta "+app.foregroundColor.cmyk.magenta+"\nyellow "+app.foregroundColor.cmyk.yellow+"\nblack "+app.foregroundColor.cmyk.black;
copyTextToClipboard(theColor);
function copyTextToClipboard( txt ) {
const keyTextData = app.charIDToTypeID('TxtD');
const ktextToClipboardStr = app.stringIDToTypeID( "textToClipboard" );
var textStrDesc = new ActionDescriptor();
textStrDesc.putString( keyTextData, txt );
executeAction( ktextToClipboardStr, textStrDesc, DialogModes.NO );
};
Copy link to clipboard
Copied
Wow !!! c.pfaffenbichler that is exactly what I need! Thanks a lot.... Adobe should to include that function to the Photoshop.
Only one more please, if I may : integers numbers .