Re: Getting values in Photoshop 7 - the complete request
Re: Getting values in Photoshop 7 - the complete request
- Subject: Re: Getting values in Photoshop 7 - the complete request
- From: Martin Orpen <email@hidden>
- Date: Wed, 21 May 2003 13:05:10 +0100
on Wed, 21 May 2003 08:40:40,
>
To save the hunt, here's the RGB version; CMYK will involve the same thing
>
but four channels:
Annoyingly, the CMYK version also needs something like:
set theCyan to ((256 - i) / 2.56)
And then a subroutine to convert the real numbers to integers - unless I'm
doing something wrong?
Still, I've waited 7 years to be able to script Photoshop, maybe within the
decade they'll add a pixel class so that we can simply get the properties of
an individual pixel - or alternatively incorporate the Eyedropper.
>
You could try using threshold adjustment to (hopefully) eliminate most of
>
the image, but I still doubt that it would be very practical.
You're right, because Photoshop still requires another workaround to make
the results of Threshold into a selection - you have to duplicate the
channel, apply threshold, make the selection and then delete the channel.
I was hoping that I could get away with analysing the histogram of an entire
image - the information looks correct *visually* - but I can't make any
sense of the values that you get from:
tell application "Adobe Photoshop 7.0"
set myValues to histogram of current document
end tell
You get 256 values returned (from both RGB and CMYK images), but I haven't
got a clue what they represent - you don't happen to know do you?
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.