Solved

Tricky layer masking

Posted on 2004-10-24
222 Views
Last Modified: 2010-04-03
Ok

So i have been working with layer masks lately and i know how you can apply the layer mask and then whatever you draw on that layer in black goes transparent and white stays opaque and greyscale inbetween.

but instead of applying fades or solid colours to the layer after applying the mask id like to apply a greyscale image so as to get the pattern of that greyscale image as a transparency on the original.

Anyone know how i can do this?

thanks
0
Question by:Quintin79
    11 Comments
     
    LVL 15

    Accepted Solution

    by:
    This should be fairly simple:

    . Create your Layer Mask.
    . Select the Grayscale image you want to use as your pattern.
    . Select your Layer mask by holding down the Alt key while clicking on the mask in the Layers palette
    . Paste
    0
     
    LVL 15

    Expert Comment

    by:will_scarlet7
    One more thing...

    To get the right effect, you might want to invert your grayscale image before copying and pasting it into your mask (Since black is transparent and White is solid). To invert the image hit Ctrl+I on your keyboard.

    Sam
    0
     
    LVL 1

    Author Comment

    by:Quintin79
    yes you raise an interesting point with the inversion.  what im doing is trying to apply colors to certain areas of photos like on buildings and cars.

    i am selecting say the wall of the bilding that is to be colored and cutting it out into another image and changing it ti grayscale.  then im applying the layer mask and i thought that i'd apply that cutting over the top of itself again (inverted) in layer mask mode to make the dark parts stay dark and t he light parts transparent, then paste it back into the original and putting a color underneath it to show throught the shadows. i also found that removing the white matte was a nice touch.

    i am so surprised at how accurate this color is becoming.  but this is a lot of stuffing around.  im wondering if theres another way.
    0
     
    LVL 3

    Expert Comment

    by:andYetAnotherLoginName
    >> what im doing is trying to apply colors to certain areas of photos like on buildings and cars.

    ain't there adjustment layers for that purpose?
    0
     
    LVL 1

    Author Comment

    by:Quintin79
    um...  maybe?

    can you explain how this would work.  never used adjustment layers.  Thanks
    0
     
    LVL 1

    Author Comment

    by:Quintin79
    andyetanotherloginname :

    no adjustment layers are for something else.  they cant do the trick that i am trying to do.  basically i need to extract the shadow as a black only transparency.  then create a solid color and apply the shadow ovver the top.

    that way no matter what color i change underneath, the shadow will always be the same over the top.  i have figured out a way to do it but its very complicated.
    0
     
    LVL 6

    Expert Comment

    by:michaelbuddy
    You should try to experiment with blend modes of the layer and  / or the layer mask.  Blend modes are found in the layers palette in a drop down menu.
    0
     
    LVL 4

    Expert Comment

    by:dearsina
    Perhaps a copy of the PSD would be helpful to fully understand what you want to do.

    sina
    london
    0
     
    LVL 3

    Expert Comment

    by:mmiika
    Other nice tool that could be useful is "Select color range" (if I understand what you are trying to do...):

    1) From the menu:  Select > Color Range
    2) Make sure the Selection Preview dropdown reads Grayscale
    3) Click on some dark(est) area of the image
    4) Adjust Fuzziness to quite high value (this means that the selection will include colors that are not exactly the color you clicked on but similar, the more fuzziness the larger the selection)
    5) click ok
    6) Click "Add layer mask" on the Layers palette, voila!


    0
     
    LVL 1

    Expert Comment

    by:cbernard1
    Hello,

    you can add a mask as an image in the "Channels" pallette, next to "Layers".

    1: open your original image that you would like to apply a mask to.
    2: set the image so it is not on the "background" layer. I typically do this by duplicating it. then make sure that new layer is selected.  You can delete the background layer now if you want to keep things clean.
    3: open the image that you would like to use AS a mask. Convert it to greyscale if it is not already.
    4: with that image open and selected, select all (ctl-A, cmd-A) and Copy (ctl C, cmd-C) to you clipboard.
    5: go back to the original image, and select "Add Layer Mask" (its the icon that looks like a circle inside a square at the footer of your layers pallette, next to the effects icon and the new layer, delete layer, etc)
    6: go to your Channels pallette again, and you will see the mask layer there, labeled "Layer (x) Mask".  it is defaulted to be invisible.  Select the View icon (the eyeball) next to it so you can view it.  
    7: With that mask layer selected, paste the image you copied to the clipboard to it. You should see a ghost image of the mask there.  It will initially be pink in color-- turn off the view icon again to see it they way you'd like it.  
    8: select the Layers pallette again, and you will see the image as a mask!

    hope this helps.

    -Court


    0
     
    LVL 1

    Expert Comment

    by:cbernard1
    PS: forgot to mention you may need to invert your grayscale image, as it will be reversed once it's applied as a mask.  
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    In this article, I'll explain how to change the color of a selection in Photoshop. I'm sure there are a couple different ways to do this in photoshop, but this is my preferred method in Photoshop. I am using Photoshop CS6 and I will be adjusting the…
    Read about why website design really matters in today's demanding market.
    The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
    In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

    877 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now