Re: PhotoScripter and Curves
Re: PhotoScripter and Curves
- Subject: Re: PhotoScripter and Curves
- From: Paul Skinner <email@hidden>
- Date: Thu, 28 Jun 2001 10:23:06 -0400
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.
--
Paul Skinner