Re: PhotoScripter and Curves
Re: PhotoScripter and Curves
- Subject: Re: PhotoScripter and Curves
- From: Simon Topliss <email@hidden>
- Date: Thu, 28 Jun 2001 17:01:49 +0100
On 28/6/01 3:23 pm, "Paul Skinner" <email@hidden> wrote:
>
on 6/27/01 7:25 AM, Simon Topliss wrote:
>
>
> Has anyone had any success applying curve data to images in PhotoShop using
>
> PhotoScripter?
>
>
>
> I am trying to add a 10% increase or decrease to the midtones of each
>
> channel (CMYK). I need to be able to access each channel separately as I am
>
> trying to create 26 variations of any image.
>
>
>
> Whatever values I add I always seem to get the same result. I was hoping to
>
> use:
>
>
>
> tell application "Adobe. Photoshop. 5.5"
>
> -- next should be all on one line
>
> adjust the current document changing curves to {adjustment: {curves
>
> adjustment {channel:cyan channel, curve:{{0, 0}, {50, 55}, {255, 255}}}}} --
>
> all on one line
>
> end tell
>
>
>
> But that's not achieving the correct result. Any ideas?
>
>
>
> Simon
>
>
Are you really sure that it isn't working properly?
>
This does work on my box...
>
<Caution Line Wraps ahead!>
>
>
tell application "Adobe. Photoshop. 6.0.1"
>
adjust the current document changing curves to {adjustment:{curves
>
adjustment {channel:cyan channel, curve:{{0, 0}, {50, 55}, {255, 255}}}}}
>
end tell
>
But the adjustment is barely noticeable.
>
>
But if your intent is
>
>> I am trying to add a 10% increase or decrease to the midtones of each
>
>> channel (CMYK).
>
I would think you would use something close to this for a 10%
>
increase...
>
>
tell application "Adobe. Photoshop. 6.0.1"
>
adjust the current document changing curves to {adjustment:{curves
>
adjustment {channel:cyan channel, curve:{{0, 0}, {128, 141}, {255, 255}}}}}
>
end tell
>
>
I think that what is happening is that you are using the percentage
>
readout from PS as your guide. In fact you need to use the scale of 0 to 255
>
as indicated by the leading and ending values in the list of values for the
>
curve.
Yes, you're right. I was using incorrect values for the middle curve.
However, even when I use your code I still get the same result. The Cyan
channel is not increased by 10% in the midtones. It's increased by about 75%
in the highlights. No matter what values I try, PhotoShop always shows the
same results. Even if I just supply {{0,0}, {255,255}} as the values (which
I thought would in effect reproduce a straight diagonal line) I still get
exactly the same result as the example from the PhotoScripter Manual:
tell application "Adobe. Photoshop. 6.0.1"
adjust the current document changing curves to {adjustment:{curves
adjustment {channel:cyan channel, curve:{{0, 0}, {32, 35}, {94, 140}, {197,
187}, {251, 235}, {255, 255}}}}}
end tell
I've tested on PhotoShop 5.02, 5.5 and 6.01.