Scripting Hue/Saturation

I can't figure out how to adjust the saturation from AppleScript!?!? (Or Javascript)
I am about to create an Action that adjusts the saturation and simply invoke that, but it feels wrong.
Help!

If it will help someone else coding AppleScript, here is my AppleScript abstraction of the Hue/Saturation/Lightness javascript...
on PS_AdjustHueSaturationLightness(h, s, l)
tell application "Adobe Photoshop CS3"
tell document 1
do javascript "
    var desc6 = new ActionDescriptor();
    desc6.putBoolean( charIDToTypeID( 'Clrz' ), false );
        var list1 = new ActionList();
            var desc7 = new ActionDescriptor();
            desc7.putInteger( charIDToTypeID( 'H   ' ), " & h & " );
            desc7.putInteger( charIDToTypeID( 'Strt' ), " & s & " );
            desc7.putInteger( charIDToTypeID( 'Lght' ), " & l & " );
        list1.putObject( charIDToTypeID( 'Hst2' ), desc7 );
    desc6.putList( charIDToTypeID( 'Adjs' ), list1 );
executeAction( charIDToTypeID( 'HStr' ), desc6, DialogModes.NO );
end tell
end tell
end PS_AdjustHueSaturationLightness

Similar Messages

  • Altering Hue/Saturation using scripting

    Hi,
    I can't work out how to change the hue/saturation/brigtness in photoshop using scripting (currently using applescript) - the 'adjust' command doesn't seem to work.
    As I'm using multi-coloured images I don't want to simply fill them with a colour.
    Any hints or tips really appreciated!
    Thanks

    I'm not quite sure how to execute the javascript function from applescript?
    and make it operate on the current layer of current document...
    I've tried this in applescript:
        tell application "Adobe Photoshop CS4"
            set myDoc to current document
            set myLayer to current layer in myDoc
            do javascript (file "/ Users / emmashipley / huesatlight.jsx") ¬
                with arguments {10, 10, 10}
        end tell
    and am getting this error message:
    Applescript error:
    Adobe Photoshop CS4 got an error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
    - <no additional information available>
    The javascript file huesatlight.jsx is saved in the path referred to so not sure why this isn't working?
    Thanks for the help!

  • Using ActionScript to specify settings in the Hue/Saturation Effect

    Hi there,
    I have been trying to write a little action script that sets up a bunch of defaults in the Hue Saturation plug-in but can only get so far.
    The syntax either falls over or I am missing something here because the same code will work when in After Affects but if I try to run a script from the script UI directory. I get a "property undefined" returned. Uusally you just call the property by name and all is well. In this particularl case though. The only way to access say the "Red channel Saturation" is to have the plug-in in the Red channel pop-up. Ok so it works but not when running an external script.
    The following does work from within AE but not from the UI scripts directory via the Window menu.
    currProj = app.project(index).layer(index):
    currEffect = currProj.Effects.addProperty("Hue/Saturation");
    currEffectProp = currProj.effect("Hue/Saturation");
    currEffectProp.masterSaturation.setValue(20);//this call works
    currEffectProp.channelControl.setValue(2);//this call works changing the plug-in pane to the Red Channel
    currEffectProp.redSaturation.setValue(-5); //this returns: "TypeError: undefined is not an object" – yet when run within AE as an expression it works fine???
    Any help would be great – thank you

    "Max thank you for solving this for me."
    I still don't know what went wrong in your original code, so it's not really "solved" I guess!
    Anyway, about layer("ADBE Effect Parade") it's the same thing as layer.Effects or layer("Effects") but I'm never sure of what will work in a non-english version of AE.
    That's why I'm adding the Hue/Saturation effect using "ADBE HUE SATURATION" instead of "Hue/Saturation"
    So a useful thing to do is to create a script in the base "Script" folder, and write something like:
    var comp = app.panel.activeItem;
    if (     comp
         && comp instanceof CompItem
         && comp.selectedLayers.length
         && comp.selectedLayers[0].selectedProperties.length)
         var prop = comp.selectedLayers[0].selectedProperties[0];
         var str = "";
         while (prop)
              str += prop.matchName + " (" + prop.numProperties + "): " + prop.name;
              prop = prop.parentProperty;
         alert(str);
    Again, typing in the browser, check the code first ;-)
    Something like that will give you:
    - the matchName of the property selected (which can be anything: effect, shape, mask ... or any property of these)
    - the number of sub-properties of the current poperty (so for the Hue/Saturation effect, that will give you the number of controls of the plugin UI, although there may be some hidden ones too)
    - the name of the property
    ... for the selected property and its parents, up to the layer it belongs to.
    I find that quite handy when you want to know the matchname of an effect for example.

  • Hue/Saturation

    Hi,
    another Problem: I need to add the "Hue/Saturation" Effect. In my german Version it is "Farbton/Sättigung".
    Both Names do not work. I also tried some Variations like "Farbton/Saettigung" or "Hue_Sat" an so on, but nothing works.
    How can I get the correct Name of this Effect? I also loaded the Hue_Sat.AEX in a Text Editor, but there it names it self only "Hue_Sat".

    As Dan said, it's best to stick to using matchNames for properties and effects as these will work in all languages of AE. I recommend getting Jeff's Gimme Prop Path script which lets you find the matchNames and property paths for any selected property:
    http://www.redefinery.com/ae/view.php?item=rd_GimmePropPath
    In general Jeff's scripts are really useful as reference for learning how to write scripts.

  • Should a Layer Mask appear simultaneously with the creation of a Hue/Saturation mask?

    Using PC+CS4.  When creating a hue/saturation mask, why doesn't a Layer Mask appear simultaneously, as it does on training instruction when instructing with CS4 on mac? I've looked through Prefs and panel options without success.  Anyone got any ideas?

    CS4 Adobe added the Adjustment Panel and in the Adjustment Panel Adobe included two new bad options that can change Photoshop Default behavior.  One of the bad option Changes Photoshop so no automatic layer mask are added to adjustment layers.  The other bad option will add adjustment clipped by default.   These option are bad for Photoshop does not always operate the way they are set and changing Photoshop default behavior brakes some thing developed for Photoshop..   These settings are not preferences and are not settable in actions and scripts and plug-ins.  If a user set these from there default setting some actions and script will fail to operate correctly.  Photoshop is not only not backwards compatible with older versions of Photoshop it not compatible with current Photoshop.  These two menu items should simply be removed.

  • In Photoshop CC (2014), Hue/Saturation adjustment layer properties disappear

    I am running Photoshop CC (2014) under Windows 7 Professional.  The program is up to date.
    Today, while editing an 8-bit image, I added a Hue/Saturation adjustment layer.  Then, in the properties panel for this layer, with the on-image adjustment tool selected, I clicked a color in the image to get a range of colors whose saturation I wanted to adjust.  Next, using the saturation slider in the properties panel, I increased the saturation of this range of colors. Finally, I closed the properties panel by clicking on the double arrow in the upper right corner.
    Later, I wanted to modify this adjustment layer.  I double-clicked on the layer thumbnail to reopen the properties panel, and found that, although the previous increase in saturation was still operating, the saturation slider was back at its default position, and the range of colors that I had previously established was gone.  Thus, I could not make further adjustments to this range of colors.
    I then did some further experimentation:  I deleted the first Hue/Saturation adjustment layer, and created a new Hue/Saturation adjustment layer. I then again established a range of colors as above, again increased the saturation of these colors, and then again closed the properties panel by clicking on the double arrow in the upper right corner.  This time, however, when I wanted to try to modify this adjustment layer, instead of double-clicking on the layer thumbnail to reopen the properties panel, I right-clicked on the layer and then clicked on "Edit adjustment..."  This opened the properties panel, which, this time, correctly showed my original adjustments -- the saturation slider showed the positive adjustment that I had previously made, and the range of colors established earlier was still shown. But then, on a hunch, I added a Curves adjustment layer above the Hue/Saturation adjustment layer.  Now, when I again opened the properties panel of the Hue/Saturation adjustment layer (by right-clicking on the layer and then clicking on "Edit adjustment..."), my previous settings were gone -- the saturation slider was at its default position and the range of colors was gone!  (But the increase in saturation was still operating.)
    Thus, it appears that there is a bug in the functioning of the properties panel of the Hue/Saturation layer: In short, once you have added a further adjustment layer, you can't then go back and make changes to the properties of the Hue/Saturation layer.  I would be interested to hear if others have noticed this.  Also, is Adobe planning to address this?

    OK, I am not entirely sure I have understood your post completely, but when you edit a colour range with a Hue/Sat layer, and click off and back on again, it will default to showing the RGB values, which you may not have made any adjustment to.  If you pick the previous colour from the image, or a similar colour, it _will_ show you the adjustments.  So long as your picked colour is contained within the range of the previous adjustment.
    Ypu could also use the RGB drop down (actually they call it Master nowadays), and chose the colour that is closest to your previously picked colour.  I expect you are away that you can edit the colour range being operated on by dragging the four sliders on the two colour bars at the bottom of the Properties panel.
    Does that make sense, or am I going in the wrong direction?

  • How can I get hue, saturation & luminance visible in the Loupe?

    For the life of me I can't figure how to get visible in the Loupe - Hue, Saturation, Luminance as I move the Loupe around a photo.
    I can get R,G,B,L. Is there a secret to get the Hue in it? I checked preferences and even searched in Aperture Help. NO luck.
    I'm in Aperture 3.0.3
    Thanks

    It is a tad secret.
    Make sure colour value is set in the Loupe menu then:
    In the Adjustments inspector choose a color value option from the Adjustment Action pop-up menu (with a gear icon). HSB i smiling at you in that list
    Then it'll appear as a colour value in the loupe.
    BTW You'll find all this in the Displaying a Pixel Grid and Color Values section of Aperture help.
    HTH
    M.

  • Photoshop Elements 6: Hue/Saturation as a basic layer?

    When creating a hue/saturation layer in Photoshop Elements 6, is it possible to have it act as a basic layer, adding and removing from the selection, rather than a mask layer?

      The simple method is to place your selection on a separate layer and clip the hue/saturation mask to it.
    In this example I selected the sky and pushed up the saturation to really exaggerate the blue color.
      Click to view
    1. Make your selection
    2. Press Ctrl+J to place it on its own layer
    3. Add new adjustment layer (hue/saturation) and click OK to close the dialog
    4. Hover your mouse over the dividing line between the adjustment layer and selection layer whilst holding down the alt key. Click when you see two small connecting circle appear. A downward pointing arrow will appear to show the adjustment layer is clipped to the selection layer.
    5. Double click the thumbnail icon on the adjustment layer (not the white mask thumbnail) and that will bring back the dialog box.
    6. Now use the sliders to make your selective adjustments.

  • What video effect for color desaturation? (e.g. Hue/Saturation in Photoshop)

    Hi all,
    What is the Premiere equivalent of the HUE/SATURATION adjustment layer found i Photoshop ? I am trying to slightly desaturate (about -53%) my movie to give it a more gritty look. I could easily get the look I wanted in Photoshpo by going to NEW ADJUSTMENT LAYER-->HUE/SATURATION.
    Is there a similar approach for Premiere? In the Video effects folder somewhere? Thanks!

    Use the "Fast Color Corrector and "Saturation".

  • Hue/saturation eyedropper not available

    The eyedropper tool in the Hue/Saturation adjustment window (Photoshop CC) is grayed out and unavailable. What do I need to do to activate it?
    Thanks!

    Great! Glad to know you are on your way.
    Gene

  • The eyedropper tool does not work with a hue saturation adjustment layer

    I am using PS CC 2014, and the problem I am having is that when I want to use the eyedropper tool to adjust the colour range affected by a Hue/Saturation adjustment layer, rather than selecting the colour in the Properties window for the adjustment layer, use of the eyedropper closes the properties window and changes the foreground colour in my palette.
    Here's the real hitch... the same thing happened to me at school last night where a) the Mac's are older and b) CS6 is still used.
    It's something with my user settings, to be sure, because the prof logged into his account on the Mac I was using in class to test it out, and it worked for him; we logged back into my account and it still did not work for mine.
    Any ideas?
    Thanks for any insights.
    RP

    Indeed Trevor, that did solve the problem. Clearly it was something I changed... wish I knew what. But, I have a list of all the settings changes I made before, so I can figure it out by making one at a time then checking...
    RP

  • Hue/Saturation Adjustment Layer

    I am a Photoshop beginner working on a class project.  In the Hue/Saturation adjustment layer box, what number value will give me a "cool blue" for the Hue slider?  Thank you.

    "Cool blue" is as specific a color as "Yummy Purple". Wikipedia took a shot at defining cool blue here:
    Cobalt blue - Wikipedia, the free encyclopedia
    which it displays as this:
    and your sliders in Hue/Saturation set to:
    H20 S0 L34 will put you in the ballpark.
    I suggest that when it comes to color spec you familiarize yourself with the Pantone Matching System, for starters.
    Good luck.

  • Hue/Saturation Adjustment Layer Bug in Photoshop CS6

    I noticed that most of the time I cannot copy a Hue/Saturation adjustment layer in Photoshop CS6. (In about a third of all cases it works, in all others I have to create a new Hue/Saturation adjustment layer).
    Hitting Command + J will cause my Mac to make an error sound.
    Option + delete also doesn't work half the time.
    Also: I cannot do a "Stamp visible" above a Hue/Saturation adjustment layer. Hitting Command + Option + Shift + E will bring another error sound.
    I have to creat a new layer, and then create a stamp visible. But half the time this doesn't work, either. Hitting Command + Shift + N will give me another error sound.
    I have to create a different adjustment layer, then an empty layer, and only then I can create a "stamp visible".
    Only Hue/Saturation adjustment layers are affected by this - but it's a true hold-up.

    What Mac? What version of OSX? That aside, your issue sounds too exotic to be a genuine bug. Sounds more like some specific combination of settings is preventing this. could be anything from blending tricks to color profiles...
    Mylenium

  • I've lost my hue/saturation screen in phtotshop. How do I get it back?

    I've lost my hue/saturation screen in photoshop. How do I get it back?

    Open your photo and from the top menu bar click:
    Image >> Adjustments >> Hue/Saturation

  • I've lost my hue/saturation screen in photoshop. How do I get it back?

    I've lost my hue/saturation screen in photoshop. How do I get it back?

    I suspect you mean the Hue/Saturation under Image>Adjustments? Are you trying to add it to a Smart Object layer?
    Benjamin

Maybe you are looking for

  • Opening queries in BEx Analyzer

    Hi, We have a new SAP BW installation. When we try to open a query from the BEx Browser, it is opened with an Internet Browser instead of BEx Analyzer. The same occurs if we try to open it from the Favorites menu in the administrator workbench. Does

  • Updated to ios6 and now when I receive an email where my address is part of a group, the email will not open and email closes automatically

    updated to ios6 and now when I receive an email where my address is part of a group, the email will not open and email closes automatically. I can open this email on my macbook. If i forward this email from my macbook to my iphone, i can then open th

  • Anyone's I Message not working this morning?

    Is your I Message not working this morning?

  • Flex Success Stories

    Hi there. I have heard a lot of developers sing the praises of how wonderful Flex is, and as a developer myself, it's certainly an improvement over using Flash.exe to author Flash movies, for certain applications. However what I am struggling to find

  • DLTOLDPKGS on iSeries

    Hi, I've restarted our two SAP systems (and the iSeries server - it contains two SAP instances, DEV and QAS) today. Now, I have two DLTOLDPKGS jobs running for more than 2 hours, each consuming about 30% of CPU. Can I safely end these jobs or should