• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PhotoScripter and Curves
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PhotoScripter and Curves


  • Subject: Re: PhotoScripter and Curves
  • From: Paul Skinner <email@hidden>
  • Date: Thu, 28 Jun 2001 11:15:04 -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
"AppleScript is digital duct tape."
Paul Skinner


References: 
 >PhotoScripter and Curves (From: Simon Topliss <email@hidden>)

  • Prev by Date: Re: Migrating scripting additions to Mac OS X
  • Next by Date: Yippie! Just got my AS in a Nutshell book
  • Previous by thread: Re: PhotoScripter and Curves
  • Next by thread: Re: PhotoScripter and Curves
  • Index(es):
    • Date
    • Thread