Re: Decimal precision in Photoshop's info palette
Re: Decimal precision in Photoshop's info palette
- Subject: Re: Decimal precision in Photoshop's info palette
- From: Craig Sutherland <email@hidden>
- Date: Fri, 19 May 2006 07:06:21 -0500
On May 18, 2006, at 11:44 , CS Carl Stawicki (4211) wrote:
My take is the app does operate at a higher precision, and the
numbers are just rounded for the UI. The Info Palette and color
mixers are frustrating because of that. What I found out though, is
that you can get ink values (and L* values also) to the 1/100 of a
percent with an AppleScript (and I'm assuming JavaScript). Copy
this line and paste it into Script Editor:
tell application "Adobe Photoshop CS" to get the foreground color
In Photoshop, sample a color from a CMYK or grayscale image to the
foreground and run the script. The result will look like this:
{class:CMYK color, cyan:14.9, magenta:89.02, yellow:64.71, black:
22.35}
You can also set the foreground or background colors to specific
values:
>snip<
A quasi UI could be incorporated into Carl's revelation. Appears to
be limited to foreground, background and stroke colors and the
Convert color Compare color commands. A quick and kludgey start,
adjusting only one pigment:
set {c, m, y, k} to {0.0, 0.0, 0.0, 0.0}
set {cStr, mStr, yStr, kStr} to {"", "", "", ""}
tell application "Adobe Photoshop CS2"
set {c, m, y, k} to {cyan, magenta, yellow, black} of the foreground
color
end tell
set {cStr, mStr, yStr, kStr} to {c, m, y, k}
display dialog "C- " & cStr & return & "M-" & mStr & return & ¬
"Y-" & yStr & return & "B-" & kStr buttons {"OK"} default button 1
display dialog "New cyan value:" default answer cStr buttons {"OK"} ¬
default button 1
set c to (text returned of result) as real
tell application "Adobe Photoshop CS2"
set foreground color to {class:CMYK color, cyan:c, magenta:m,
yellow:y, black:k} ¬
end tell
Craig Sutherland
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden