Re: PhotoScripter and Curves
Re: PhotoScripter and Curves
- Subject: Re: PhotoScripter and Curves
- From: Paul Skinner <email@hidden>
- Date: Thu, 28 Jun 2001 13:34:06 -0400
on 6/28/01 12:01 PM, Simon Topliss wrote:
>
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.
>
_______________________________________________
Very odd. In my tests (6.0.1) it achieves the result that a manual curve
does.
What exactly are 'exactly the same results'? Does it always boost the
highlights as in your test with my code or was that different than usual?
I would verify that manually changing the curve produces the effect that
you want. PS's color settings can produce bizarre results on screen if you
set them up 'right' have you checked them?
Oh, right, you posted that you performed this by hand. Ouch!
You should probably post this on the support list for PhotoScripter. I
believe that even if you are using the free demo <not to insinuate that you
are> you can sign up.
--
"AppleScript is digital duct tape."
Paul Skinner