apply the layer mask selection

Hello

IAM looking for a solution to apply a previeuws

choice of a layer of an adjustment layer mask.

The gale of my code to select the mask - but when I apply the

selection, it creates top layer.

I need to go into the layer mask (alt and click) and then paste it.

Then turns off.

Scriptlistender is not helping much.


app.activeDocument.selection.selectAll(); //selects stuff on the preview layer
app.activeDocument.selection.copy();  //copy that stuff - to paste it into the mask later

var adjLayer = doc.layerSets.getByName("ao").artLayers.getByName("ao");  //searching for a group and specific layer
var mask = ExtendedLayer.selectLayerMask(adjLayer); // extern function wich selects the mask (does not go "into" the mask - just selects it)


pastMask = function()
{

// Selectin recorded by Script listender
var idslct = charIDToTypeID( "slct" );
    var desc321 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref212 = new ActionReference();
        var idChnl = charIDToTypeID( "Chnl" );
        var idChnl = charIDToTypeID( "Chnl" );
        var idMsk = charIDToTypeID( "Msk " );
        ref212.putEnumerated( idChnl, idChnl, idMsk );
    desc321.putReference( idnull, ref212 );
    var idMkVs = charIDToTypeID( "MkVs" );
    desc321.putBoolean( idMkVs, false );
executeAction( idslct, desc321, DialogModes.NO );

// paste, recorded by script listender
var idpast = charIDToTypeID( "past" );
    var desc322 = new ActionDescriptor();
    var idAntA = charIDToTypeID( "AntA" );
    var idAnnt = charIDToTypeID( "Annt" );
    var idAnno = charIDToTypeID( "Anno" );
    desc322.putEnumerated( idAntA, idAnnt, idAnno );
executeAction( idpast, desc322, DialogModes.NO );


};
pastMask();

Any help would be really nice. !

Thank you very much

Alpha

app.activeDocument.selection.selectAll (); selects on the preview layer stuff

app.activeDocument.selection.copy ();  copy such things - to paste it later into the mask

var adjLayer = activeDocument.layerSets.getByName("ao").artLayers.getByName ("ao");  looking for a group and a specific layer

activeDocument.activeLayer = adjLayer;

pastMask = function()

{

Selectin registered by the listender Script

var idslct = charIDToTypeID ("TPCV");

var desc321 = new ActionDescriptor();

var idnull = charIDToTypeID ("null");

var ref212 = new ActionReference();

var idChnl = charIDToTypeID ('channel');

var idChnl = charIDToTypeID ('channel');

var idMsk = charIDToTypeID ("Msk");

ref212.putEnumerated (idChnl, idChnl, idMsk);

desc321.putReference (idnull, ref212);

var idMkVs = charIDToTypeID ("MKV");

desc321.putBoolean (idMkVs, true);

executeAction (idslct, desc321, DialogModes.NO);

dough, recorded by the listender script

var idpast = charIDToTypeID ("gone");

var desc322 = new ActionDescriptor();

var the idAntA = charIDToTypeID ("AntA");

var idAnnt = charIDToTypeID ("Annt");

var idAnno = charIDToTypeID ("year");

desc322.putEnumerated (idAntA, idAnnt, idAnno);

executeAction (idpast, desc322, DialogModes.NO);

};

pastMask();

Tags: Photoshop

Similar Questions

  • Why apply the layer mask is grayed out?

    Hello

    From time to time 'apply the layer mask' is not available.

    What I checked myself:

    -Photoshop is not in master view (abbreviation Q).

    -J' have reset all warning dialog boxes (since it is a way to get a mask by dragging it to the trash).

    Can't get to work!

    Other solutions? Thank you!

    Screen Shot 2015-04-20 at 11.23.16.png

    I found myself - the layer was a dynamic object. Perhaps I should suggest Adobe to let Photoshop ask pixelation during application, instead of just greyin'out.

  • Restore to 'apply the layer mask' OPTION?

    There is a new feature where you can drag a layer to the trash and NOT invited mask to "apply the layer mask?  This also has the 'do' don't show again option - which I clicked by accident. Thus, the default is now to apply the layer mask when I drag a layer mask to the trash. I can't imagine a way to restore the more traditional function, without restoring all other prefs.

    So what I would like is a way to restore the default classic where dragging a layer mask to trash the opportunity to apply or ignore them.

    Please excuse this apparently insgnificant request, but it is a very common function I would like to restore.

    Thank you!

    See if clicking Reset all dialogs warning at the bottom of Photoshop > Preferences > general solves the problem.

  • Changes to the selection without affecting the layer mask

    Hello

    I've hidden an image selection using the lasso tool. Added an adjustment layer (exhibition) and reduced the exposure. And then refined at the edge. Any fine. I add the layer to selection, and then click change the mask with the lasso to add and subtract the mask tool. I change the setting - raise or lower the exposure - but only the previous selection is affected - even if the framing box clearly shows the changes made to the selection.

    I need to create a new layer of setting each time so that it can work properly.

    Is - this usual? I thought that one could just edit the mask and then changes are applied automatically?

    Thank you

    Jez

    When you have a selection and create an adjustment layer, selection is enabled in the mask, so there is no longer a choice. By clicking on add a new selection to the selection at this point to this fact and does not add to the mask. You must use this selection and add fill it with white, black or a shade of gray that will then be used to request that the amount of the correction of the adjustment layer. If you want two different settings with different selections, then you will need to make two different adjustment layers.

  • Best way to apply the Format mask for the fields in a Table of the ADF

    Hi all

    12.1.3 JDev

    I would like to introduce the price data, quantity etc. fields of the ADF Table of the user interface in a specific format.

    These formats need to be dynamic, because they change according to the locale selected and sometimes they differ in the same locale.

    I tried approach converter custom but not satisfied because it is called several times when it is used in a table of the ADF and when asked that told me that this is the behavior.

    Custom converter of an attribute in a table called several times

    So, please suggest a better way to apply the format mask (which has min & max fractions, grouping, rounding) to the fields in the Table of the ADF.

    Please let me know if you need more information.

    Thank you

    B S Bilodeau.

    The second question, which I've mentioned here is the converter is called several times for each click on the table.

    This isn't a problem, this is the expected behavior (and you can't avoid it).

    Dario

  • I want to see the layer mask instead of the thumbnail of the layer mask in the layers palette.

    I don't see a thumbnail of the mask layer instead of the layer mask itself when I add a layer mask to the CS6.  How can I change this so the layer mask

    appear in the layers palette?

    Thank you

    Marc

    From what I remember of the CS6, it's the same CC follow these steps: in the layers palette, click on Panel options

    Click on the larger thumbnail

    The layer mask should now be big enough to see. Otherwise, you need to display it on the screen by alt clicking on

    on a PC option by clicking on the layer mask on a Mac

  • White color on the layer mask does not

    Well, I have a problem... Each setting is fine, but when I open the layer mask on a layer, and if I have the black brush, it works very well, BUT if I brush white, it does not work. It's like the color white is on 0% opacity. It shows me an action in "history, but it's like I'm not even brushing."
    Now, when I want white brush, I switched layer mask, brush black and then I reverse again, because as I said, the white color just doesn't work...
    -Colours btw, work not in a layer mask

    Is the Mode in the Options bar to brush on something other than normal?

  • Opacity of the layer mask Photoshop in AE

    I have a series of PSD files each with a layer mask with a default opacity of 100%. PS, I change the 'density' of the layer of about 15% in order to achieve the desired result. Either way, the layer mask is also an inactive Alpha channel.

    My question is that when I include the series of the PSD AE as-is, the layer mask is available as a black. It doesn't seem to be a way adjust the density of the mask as in Photoshop. I tried to use an alpha channel and track matte, but no luck. The main PSD file has the default active layer apparently mask with no way to change it.

    Maybe I'll have to put in place an action on PSD files?

    Thank you.

    Screen Shot 2015-06-04 at 12.30.33 PM.pngScreen Shot 2015-06-04 at 12.28.20 PM.png

    AE is not layer masks as separate channels, it uses only the calculated pixel opacity. Simply, you cannot use this method. Rasterize your stuff to separate the layers.

    Mylenium

  • How to resize layer with a large image of the layer mask?

    Hi all

    How to resize the image on the layer mask?

    * document - doc.width, doc.height

    * mask - activeLayer.bounds

    * and how to take the coordinates in the image with the mask, if the image is larger than the size of the document?

    01.jpg

    2014, use it at your own risk.

    #target "photoshop - 70.032»

    If (app.documents.length > 0) {}

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var layerDesc = executeActionGet (ref);

    var layerMaskEnabled = layerDesc.getBoolean (stringIDToTypeID ("userMaskEnabled"));

    If (layerMaskEnabled == true) {}

    // =======================================================

    var idsetd = charIDToTypeID ("setd");

    var desc4 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    var idOrdn = charIDToTypeID ('Ordn');

    var idTrgt = charIDToTypeID ("Trgt");

    Ref1.putEnumerated (idLyr, idOrdn, idTrgt);

    Desc4.putReference (idnull, ref1);

    idT var = charIDToTypeID ("T");

    var desc5 = new ActionDescriptor();

    var idUsrM = charIDToTypeID ("rocket");

    Desc5.putBoolean (idUsrM, false);

    var idLyr = charIDToTypeID ("Lyr");

    Desc4.putObject (idLyr, idT, desc5);

    executeAction (idsetd, desc4, DialogModes.NO);

    };

    Alert (app.activeDocument.activeLayer.bounds)

    };

  • How to paste a picture into the layer mask? (Photoshop Cs6)

    How to paste a picture into the layer mask? (Photoshop Cs6)

    Try the steps in this tip video tutorial:

    Good luck!

    See you soon,.

    Kendall

  • How can I change the opacity of the layer mask?

    HI -.


    I used a layer mask to hide portions of a picture.

    Now I need to leave this hidden part of show at, say, 50% opacity (I'll have to experiment to find the optimal percentage.).

    I'd like to screw up the layer mask and start on another.  Already, I thought I could duplicate the masked layer, remove the mask on the copy and set its opacity to 50% but now I have 2 layers.  I suspect that there is a way to do without a double layer.

    Is it possible to adjust the opacity of the layer mask?

    TIA your entry

    JL

    Win7, Photoshop CS5

    Have you tried to use the controls in the masks palette?

    You control the opacity of the area exposed with the opacity of the layer and the density of the hidden box with the density on the masks palette slider.

  • Change the layer mask: Alt + Shift + click does not work?

    I have PES 9 w/Mac OS X.  According to Adobe using for layer masks, "to display the mask in a mask color red, hold down the Alt + Shift and click on the thumbnail of the layer mask".  It is also stated by Missing Manual for elements.  I can't get this to work and can display the mask only in itself (in black and white).  I have uninstalled/reinstalled without success.  In other words, when I change the mask, I don't see where I'm editing.  Can someone help me?

    Exit the editor, then go in your username > library > Preferences and delete:

    com.adobe.PhotoshopElements.plist

    Adobe Photoshop Elements 9 paths

    Adobe Photoshop Elements 9 parameters

    Repair permissions, and then try again.

  • Script to add the layer mask to all layers but the background?

    I have been a professional editor/Retoucher for photographers for the past three years. I use a lot of stock, but I've never branched in scripts so far. I am trying to refine my workflow and scripts to not appear to be the next logical step.

    I do a lot of work in the interiors, which is essentially manual HDR. Here's my current generation process, which I would love to find a way to script. I tried to be very clear, but let me know if it needs to expand. I use Photoshop CS5.

    1. pull brackets, color corrected TIFF in Bridge.

    2 re-order as needed, with the main exhibition downstairs. Click on 'Tools' > 'Photoshop' > 'Charge in the form of layers Photoshop"to get a PSD with layers in the correct order and main as exposure layer from bottom (base).

    3. manually go through each layer and add a layer mask hide all each layer except the background layer.

    4. Save as a PSD, using the original name of the background layer as the file name. To do this, I just copy the name of the layer (example.tiff), paste in the Save dialog box and then use the drop-down menu to select PSD (save as example.psd).

    I hope to automate steps 3 and 4 as they are the majority of your time for me. Any contribution is appreciated!

    Thanks again.

    Yes, your change is good.  This way the last layer will not have a mask applied.  I wasn't sure if you wanted that, but in the control for the background layer.

    Regarding the economy, what file format would you save on?  Here's how to save a psd:

    docRef var = activeDocument

    var doneFolder = new Folder('/c/photos/')

    var NomCouche = docRef.activeLayer.name

    var psdOptions = new PhotoshopSaveOptions();

    psdOptions.layers = true;

    app.displayDialogs = DialogModes.ALL;//include this line if you want that the coming dialog box.

    docRef.saveAs (new file (doneFolder + "/" + NomCouche + ".psd"), psdOptions);

    app.displayDialogs = DialogModes.NO;//Resets at ALL - you won't let it work on.

  • How to create the layer mask using ellipse (circle) to show the face of the watch only?

    just stuck - see how to get a job of layer mask using a brush, but can not get by with the help of an ellipse

    What I'm after is:

    * Start simple watch, with the face and band by photo

    * want to apply a layer, so the only thing I see the circular face of the watch (no tape etc.) and that the base is clear (alpha)

    May I ask what are the instructions step by step to achieve this goal by using layer masks & ellipse tool?  (i.e. not having to manually paint around the dial)

    Here's the original image:

    1. Make a copy of the background and work on this copy of background layer.
    2. Use the elliptical selection tool, hold down the SHIFT key to draw a circular selection:
    3. Select use (on the menu bar)... Transform the selection to move the selection, and drag the sides of the selection at the edges of the dial:
    4. After you click the green check mark, use the selection... Inverse to select all items except the dial of the watch and press your delete key to remove such things:
    5. Your layers look like this:

    Alternatively, if you want to use a mask, after step #3 hit the icon 'Mask' at the bottom of the Palette layers to create a mask layer automatically by using the selection:

    Ken

    Post edited by: photodrawken to add the alternative method of mask.

  • Using the layer mask in Photoshop CC 2015?

    Hello!

    I'm trying to iron out some unsightly underarm in Photoshop CC 2015.

    I duplicated the layer and applied Surface blur.

    I clicked on the layer of the dup, while pressing option (using a Mac) to create a layer mask where I could brush the blur in but nothing happens. What I'm missing here?

    Thank you!

    Confirm:

    The blurred version is on a layer above the background image

    The version hazy layer has a black mask

    You paint the mask in white with the brush opacity Normal and 100% value

    The Brush tool is not too much to feathers. (To check, use brush hard edge as a test)

Maybe you are looking for