Apply Black and White to a layer?

Hi,
     I would like to convert a layer in to Black and White. I have done it manually, I have select it in the following:
Image Menu --> Adjustments --> Black & White.
     How do i apply the effect through scripting? Could you please guide me on this.
thanks,
Rajiv.S

Record the ScriptingListener code for the creation of a B&W Adjustment Layer, then use that and combine it with something like
app.activeDocument.activeLayer.merge()
or
app.activeDocument.activeLayer.grouped = true
to merge or Clipping Mask it to the underlying Layer.

Similar Messages

  • Colored texture pasting as black and white into a layer mask

    Hello all,
    First time poster, long time lurker here.
    I'm pasting a colored layer into a layer mask I created  in order to texturize a shape I made. Whenever I Option + Click the layer mask and then paste the texture, it pastes in black and white instead of color, see screen capture below (pardon the watermark):
    http://www.youtube.com/watch?v=wC8Da4V0FAc
    Am I missing something here? Thanks in advance!

    If you want to add a texture to a shape, create a new layer, fill it with your texture, then ALT+click their separation line in the layers panel.
    This creates a what is called a Clipping Mask: http://helpx.adobe.com/photoshop/using/revealing-layers-clipping-masks.html.

  • Original picture turns black and white when adding layer masks.

    Creating a collage. Just placed a new object with a layer mask. Now I need to create a hue/saturation, levels adjustment layer and color balance adjustment layer all with masks. Ok, no problem, but when I do this, my original picture turns black and white. HELP!!! School project and has to be completed by Monday morning.
    Thanks. Dawn

    You haven't added a Hue/Saturation layer that's got Saturation turned all the way down, by chance?
    It might be helpful if you'd capture a screen grab and post it here, showing your layers and channels panels.  With a look at how things are organized knowledgeable folks here should be able to help or at least ask more direct questions.
    -Noel

  • Black and white a adjustment layer not working

    Hi every one. I know this is going to sound really dumb but I am looking to change a color logo to bw. I wanted to use the black and white adjustment layer but the option is greyed out. Is there a step I am missing? The file is cmyk and is 8bit. I am using PS  CS6. What do I need to do to make this option available?

    The only dumb question, is the one you do not ask.

  • Black and White Tips

    Hey,
    I'm going to be shooting a short film with my Canon HV20 in 24p/ black and white. I've gathered that it's best to shoot in color and then apply black and white filter in post. I've also gathered that lighting is crucial.
    1. Does anyone know of some good literature or video that educates on the art of lighting HDV for black and white?
    2. Is there something else that I should be prepared for?
    thanks,
    Trey

    If your final product is going to be B&W then I suggest you shoot B&W.
    Lighting for B&W is different than Color for starters. Not sure if your HV20 can do this or not, but if it can go for it.
    Here is one person's approach for a stylized B&W shoot for HDV
    http://www.hdvinfo.net/articles/sonyhdrfx1/fordhamhhd1.php

  • Black and White and Title screens don't save

    Hi,
    i have a problem with Premiere Pro CS3.
    I am currently editing a color film and have applied the black and white effect to most of the scenes. At a certain point the program seems to have no capacity for that effect anymore. Half of the film stays black and white when saving, closing the program and opening the file again, but the other half is still displayed in color. I checked the effects of those scenes. the black and white effect is still applied, but it doesn't work, the scene is displayed in color.
    Furthermore some Title screens get lost after a save. They show the "media offline" picture. When double clicking them, the correct title window is displayed, but it is not correctly shown in the film.
    I tried to save other stuff like shortening the film and it works fine.
    Can you help me? What went wrong? What do I do wrong?
    Greets,
    florian

    hmm interesting
    i tried to import the project into a new project. what happend is the following:
    i had a new folder in the project window (maybe what you call PP. i don't know, because i have got the german version). that folder contains whole film from the other project called "Sequenz 01" and all the other root files. the interesting thing is: after importing the project, i see it with an applied black and white effect and also all the title screens are inserted and shown correctly.
    problem solved ..... i thought.
    saving the new project results into the same problem as before. when re-opening the project part of the film (only the last couple of scenes) is in color again and the title screens don't now their root.
    note: i tried to export the film and see whether the exported .avi or .mpg is also erroneous. sadly, thats the case
    i don't think its a machine-level error, because i tried it on three machines already.
    all machines had vista, intel core 2 duo 2400mhz, graphics intel q965/963 express chipset family
    what do you mean by "input/output setup"?

  • Swap black and White in layer mask

    How do I change the default settings for the layer mask, as I'd like to swap black and white color.

    hi steenmikkelsen2,
    white means that your mask is transparent until you fill it with black. since then, there was no option to change the mask default settings from white to black otherwise you have to do what Noel suggested. but i hope my suggestion will help you better.
    ►press "Alt" key on your keyboard simultaneously as you click on the "Add Layer Mask" button under the Layers panel. that switches a white layer mask to black. :-)

  • Determine if layer is black and white (or desaturated)

    Is there a way to programmatically determine if a layer of a PSD is black and white?

    What mode are the images you want to check in anyway? CMYK, RGB …?
    I suppose there are several options to achieve it.
    • Iterating through the pixels with a ColorSampler would take too long for larger images, I guess.
    • The Histogram would be unreliable because the numbers for each value in each Channel could accidentally be identical.
    • But hiding other Layers, duplicating the image (mergeLayersOnly), changing to L*a*b, reading the a- and b-Histograms, closing the copy, un-hiding other Layers should work.
    If the a- and b-Histograms are all bunched up around 127 (some tolerance could be set) it should be a desaturated Layer.
    // check layer for 0 saturation;
    // 2011, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    hideShowOthers ();
    // duplicate;
    var theCopy = myDocument.duplicate("copy", true);
    theCopy.changeMode(ChangeMode.LAB);
    // get histograms;
    var theA = theCopy.channels[1].histogram;
    var theB = theCopy.channels[2].histogram;
    // check histrograms;
    var check = true;
    check = checkHistogram (theA, check, 0);
    check = checkHistogram (theB, check, 0);
    // close;
    theCopy.close(SaveOptions.DONOTSAVECHANGES);
    // re-show;
    hideShowOthers ();
    if (check == true) {alert ("layer is desaturated")}
    else{alert ("layer contains color")}
    ////// check histogram for cumulation around 227 //////
    function checkHistogram (histogram, check, tolerance) {
         for (var m = 0; m < 126 - tolerance; m++) {
              if (histogram[m] != 0) {check =  false}
         for (var n = 255; m > 127 + tolerance; m--) {
              if (histogram[m] != 0) {check =  false}
         return check
    ////// hide/show all others //////
    function hideShowOthers () {
    // =======================================================
    var idShw = charIDToTypeID( "Shw " );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var list1 = new ActionList();
                var ref1 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref1.putEnumerated( idLyr, idOrdn, idTrgt );
            list1.putReference( ref1 );
        desc2.putList( idnull, list1 );
        var idTglO = charIDToTypeID( "TglO" );
        desc2.putBoolean( idTglO, true );
    executeAction( idShw, desc2, DialogModes.NO );
    But someone else may have a better solution ready.

  • CS4: Black-and-White adjustment layer - no Saturation slider?

    Hi. The modal dialogue for Black and White has the "Colorize" option and for that "Hue" and "Saturation" sliders.
    But Black and White as an adjustment layer in the adjustments palette does NOT offer the Saturation slider. At least not in my CS4 Extended on Win XP. There is the targeted adjustment tool (TAT), but it changes color, not saturation.
    Can that be or am i missing something?
    Thanks!

    The interesting thing is that there is an colorization saturation adjustment slider in the imag-adjustment-black and white dialog as shown below.
    The lack of that slider in the adjustment panel is a bug in CS4. It was present in CS3.
    Adobe should fix that because it is really usefull because it's non-destructive and can be set as a preference.
    The cumbersome workaround is to add a hue saturation adjustment layer.

  • How to copy a black and white layer to the mask of another layer.....

    Earlier I asked, "How?"
    Got a reply, but the solution didn't work in PSE 10. 
    After trial and error, I figured it out.
    When dealing with abstract art or even hair, it is too time consuming to make a
    mask pixel by pixel.
    Load the image you want to mask into a new layer and convert it to black and white.  You might need to
    adjust contrast/brightness to maximize the effect..
    Using the Magic Wand tool, click on the WHITE area of the image.   
    Click Edit/Copy.
    Click on the layer you want the mask copied to.
    Next, click on "Add new layer mask" button on the bottom of the layers panel. 
    Your mask should appear and is now ready for a touching up!.

    What’s the correct way to proceed?
    Joke?
    In Photoshop there are often more ways than one to achieve a task and none of them need be considered »wrong« as long as the result fits the intention, so »the correct way« seems to be problematic terminology.
    Anyway, one can use a Layer set to Blend Mode Color and paint on that with whatever colors.
    Or one can use Solid Color Layers set to Blend Mode Color.
    Or Hue/Saturation Layers …
    To edit contrast if necessary Curves or Levels Adjustment Layers can be employed.
    You could also have googled »photoshop colorize black and white« …

  • Q: How do I Mask/Layer a color photo with a black and white photo?

    This is what I want to do. I've done it before but cannot remember for the life of me how to do it again. I want to put a color photo under (its own) black and white photo and then erase or remove or something (I can't remember the tool to do it) but I want to be able to see some of the color photo in my black and white photo. For example, say I have a pic of the Disneyland Castle. I want to make the pic black and white and then with a layer or mask (whichever one) have the exact colors of the picture underneith it show up after I have used the paint brush to remove the black and white...is anyone understanding me? When I did it before I know I did it in only a few steps, it wasn't super complicated, and I'm probably stupid for not knowing how to do it now. Thanks!
    Lindsey Henry

    Lindsey,
    First, look at the Channels in the B/W. Probably, you can use one of those as a Selection and then as a Layer Mask. If not perfect, then you can likely get close. If you need to, you might want to Blend more than one of those Channels.
    If you have an issue "collecting" the Channels, just get your B/W into a separate Image, and then drag individual Channels back to your composite image, and use them, as is necessary.
    Hope that some of those ideas are useful,
    Hunt
    BTW - turn OFF the color for Channels, so that you can see them as B/W, as that will help you see their makeup.

  • Extracting Photograph Noise as a black and white layer from Photograph

    I am looking to extract natural noise from a photographs material and create a black and white layer out of it, but I am new to photoshop and unsure how to proceed with this.
    For example, here is a photograph of a hard plastic gun.
    [IMG]http://dl.dropbox.com/u/2871613/racer/G36.jpg[/IMG]
    I have seen on forums where users will find a good reference image and use it to create a new black and white noise picture utilizing the reference.
    For instance the hard plastic noise from the gun, might look like this once extracted and done correctly.
    [IMG]http://img.photobucket.com/albums/v11/wwarriorww/hard_plastic.png[/IMG]
    Any ideas on how to produce something such as this?
    Thank you

    This is just off the top of my head...  You could try something like this:
    1.  Duplicate the image as a second layer.
    2.  Run a noise-reduction tool with aggressive settings, possibly multiple times.
    3.  Set the noise-reduced layer to Difference.
    4.  Merge layers.
    5.  Filter - Other - High Pass.
    6.  Enhance the magnitude of the result with a curves or levels operation.
    -Noel

  • Cc opacity keyframe on black and white adjustment layer doesn't work

    hi
    i use premiere cc under w8.1 pro
    well i noticed a strange behavior
    i added an adjustament layer , black and white effect , and several keyframes
    seems that premiere reads only the first one
    for example
    1) keyframe -> @0%  the second keyframe @100%  the video is all in color ,doesn't matter how many keyframes i add
    2) first key @100% second @0% (opacity) the video is all in black and white , again doesn't matter how many keyframes i add , only the first is read
    i tried the black and white effect , on video ,titles and so on and it works perfectly , it doesn't work on the adjustament layer
    i tried others effects on adjustament layer and they work
    is a bug ?
    is there an known bug in prev. versions?
    thanks

    thanks i do it, saturation
    but can't understand why this happen with adjustament layer only
    may i know which cc version do you use?
    sometime i think to buy c6 , i have cc subscription

  • Help! Photoshop is in RGB mode but I can only paint in black and white

    It seems like Photoshop is stuck in B&W. As soon as I open my document, it shows at the top that it is in RGB/8 mode. I've tried clicking Image>mode>RGB again just to be sure but it's already set to RGB. The document is one layer so there's no way another layer is affecting it. Does anyone have an idea what may be going on? I'd appreciate any help I can get!

    If it says rgb/8 then it is in rgb 8 bit mode.
    If your opening a file, it could be 1 or more of the channels are missing or a single channel is selected. Take a look at the channels panel and see if the RGB channels are there and RGB is selected.
    {odds are this is not it as the name of the channel would replace RGB/8 ex. selecting the B channel would display Blue/8 instead of RGB/8}
    Make sure your document is not in quickmask mode (hitting the q key switches between quickmask and normal mode)
    {odds are this is not it as quickmask/8 would be displayed instead of rgb/8}
    Make sure you don't have a mask selected
    {Odds are this is not it as layer mask/8 would be displayed instead of RGB/8}
    Take a look at your swatches and verify there are colors there and not shades of gray
    {Odds are this is not true because RGB/8 is displayed}
    And finally verify what adjustment layers are applied to the layers panel - Several adjustments are capable of changing the display to black and white while retaining the RGB/8 mode.
    If none of this helps then post a screen shot of photoshop with the layers panel and the channels panel open. You can drag a panel away from the docked position to keep it open.

  • PSE 8: Color Tinting from Black and White Photo

    Basically, the title says it all.  Can someone tell me how to add areas of color in a black and white photo for PSE 8?
    I really appreciate it.

    Using Hue Saturation won't colorize my whole picture?  What if I just want to color a hat?  I mean, I know about hue/saturation and I know how to colorize.  But, how do you do it for something specific within that picture and leaving the rest black and white?
    Select what you want to colorize and then apply the colorization methods. You might want to first feather the selection 1 or 2 px to get a soft edge. As to Barbara's first method (painting on a blank layer with Color blend mode), the color tends to be washed out. If you want a deeper color, duplicate the layer and set its blend mode to Multiply; if the result is too dark then lower the duplicate layer's Opacity.

Maybe you are looking for