Re: PhotoScripter and Curves
Re: PhotoScripter and Curves
- Subject: Re: PhotoScripter and Curves
- From: Simon Topliss <email@hidden>
- Date: Thu, 28 Jun 2001 08:29:09 +0100
On 28/6/01 12:30 am, "Shane Stanley" <email@hidden> wrote:
>
On 27/6/01 9:25 PM +1000, Simon Topliss, email@hidden, 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?
>
>
I hit the same problem. I ended up using a curves settings file:
>
>
adjust changing curves to {settings file:alias curvesFile}
>
>
(The settings files are fairly simple ASCI -- because they had a habit of
>
getting thrown out, I had the script write a new one each time it ran.)
That's the route I'm having to take. I actually need variations creating for
2 different value tolerances (3% and 5%), so I had two manually create all
52 curve settings files.
I don't quite follow how you wrote out a new settings file each time. I
opened a curve setting with bbedit to see if I could use AS to create them,
but the code inside is all extended system characters. How did you read the
files?