Hide all layers

I have over 150 different models used in events like backgrounds. Some have one selection of other up to six. Using the event handler action happening in the choice of different I find myselfe always clicking on stop several times during the use of less than 6 selections. Yes I could delete or hide layers in the action, because I always close when you are finished with an action "Close without saving" but I think a script better. The script should hide all layers without worrying how much there is. My origins have no other layers called layers, but only those stuck will be called layer 1, layer 2, etc.

Here's a sample of what I do: can someone help me please.

http://www.pixentral.com/show.php?picture=1lYFhA8misPZcBJm5mQwdbfIk3jPY1

"I did not understand a control number but only them identified by their names beginning by" layer ", still you could try this:

2010, use at your own risk.

#target photoshop

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

hideLayers (app.activeDocument);

};

function to hide all layers pixelated.

function hideLayers (theParent) {}

If (! allLayers) {var allLayers = new Array}

else {};

for (var m = theParent.layers.length - 1; m > = 0; m-) {}

var theLayer = theParent.layers [m];

apply the function of games of layers;

If (theLayer.typename == "ArtLayer") {}

If (theLayer.name.slice (0, 6) == 'Layer') {}

theLayer.visible = false;

};

allLayers.push (theLayer)

}

else {}

allLayers = allLayers.concat (hideLayers (theLayer))

}

};

return allLayers

};

Tags: Photoshop

Similar Questions

  • Show or hide all the layers?

    What is the way to show or hide all the layers in the layers panel at the same time?

    Thank you.

    Close.  Quickly, you can show or hide all the layers, but on what you are.  Hold down the ALT key and click on the visibility icon (eyeball).

    -Christmas

  • Flatten all layers including the background (but not locked layers)

    Is there a way of

    Flatten all layers including the background excluding all locked layers Layer

    and then turn off visibility for locked layers

    Any help most welcome!

    After my previous error, I tried a solution, and you can give it a try:

    2015, use it at your own risk.

    #target photoshop

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

    myDocument var = app.activeDocument;

    var theLayers = getLayersIndexAndID ();

    Hide locked;

    for (var m = 0; m< thelayers.length;="" m++)="">

    If (theLayers [m] [3] == true) {hideByID (theLayers [m] [2])}

    };

    Merge visible layers;

    myDocument.activeLayer = myDocument.layers [myDocument.layers.length - 1];

    myDocument.layers [myDocument.layers.length - 1] .visible = true;

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

    var idMrgV = charIDToTypeID ("MrgV");

    executeAction (idMrgV, undefined, DialogModes.NO);

    };

    ////////////////////////////////////

    function getLayersIndexAndID () {}

    Var ref = new ActionReference();

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

    var applicationDesc = executeActionGet (ref);

    var number = applicationDesc.getInteger (stringIDToTypeID ("numberOfLayers"));

    var theArray = new Array;

    work in layers.

    for (var m = number; m > = 0; m-) {}

    try {}

    Var ref = new ActionReference();

    ref.putIndex (charIDToTypeID ("Lyr"), m);

    var layerDesc = executeActionGet (ref);

    var layerSet is typeIDToStringID (layerDesc.getEnumerationValue (stringIDToTypeID ("layerSection")));.

    isBackground var = layerDesc.getBoolean (stringIDToTypeID ('background'));

    theName var = layerDesc.getString (stringIDToTypeID ('name'));

    theID var = layerDesc.getInteger (stringIDToTypeID ('layerID'));

    locking of the var = layerDesc.getObjectValue (stringIDToTypeID ("layerLocking"));

    anyLock var = false;

    for (var a = 0;< locking.count;="" a++)="">

    var thisLock = locking.getBoolean (locking.getKey (a));

    If (thisLock == true) {anyLock = true}

    };

    ////////////////////////////////////

    If start of Group:

    If (layerSet! = "layerSectionEnd" & isBackground! = true) {}

    theArray.push ([theName, m, anyLock theID])

    };

    ////////////////////////////////////

    }

    catch (e) {};

    };

    the results;

    return theArray

    };

    hide the layer.

    function hideByID (theID) {}

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

    idHd var = charIDToTypeID ('Hd');

    var desc2 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putIdentifier (charIDToTypeID ("Lyr"), theID);

    List1.putReference (ref1);

    desc2.putList (idnull, list1);

    executeAction (idHd desc2, DialogModes.NO);

    };

  • Can someone tell me how to show/hide multiple layers at the same time?

    Hello

    Can someone show me how to make more than one layer visible or invisible, without having to click on each separate layer? -J' have more than 100 layers in a drawing, and it is very tedious to have to click on each individual layer to hide it or show it. I just started using Photoshop elements 13, on an iMac

    Thanks for any advice.

    You can Option , click on the eye next to the thumbnail icon of the layer to hide all selected layers, but.

    Option , click New to display all layers.

    Order click to change the visibility of the selected layer switch

    To hide multiple layers, select the layers, right-click on one of the eyes, and click hide this layer

    Repeat to repeat the visible layers.

    You can also click on one of the eyes and then drag down or to hide layers and invert to make the visible layers.

  • Hide multiple layers in 3D?

    I have a comp which is essentially a map projection with several slices of an old photo of a House stuck on images of the House that I filmed.  I used tracker camera 3D NULL values to place them in space.  Does make sense so far?   But now, I have a problem where I would hide all the layers at the same time pen out and do consider smooth on the edges.  For some reason, the mask sticks just the images I shot initially and layers in 3D.  Tracker mask is good except that you cannot change the path at all once it is followed because it uses data points to mask path as Tracker mask points.

    I tried precomping, but he has not made a difference.  Which means, I precomped all layers and then tried to mask/feather as a single unit.  Did not work.

    My goal is to have a mask to stick at home and have the kind of mask of morph in the clip.  The rest of the project to the other shots was easy.  Only, I had a photograph for each shot.  I have followed 3D clip, is a null value, which is attached to a point of Tracker, copied the position that NULL to the photo and then adjusted the picture up to what he did.  It works like a charm.  But, when I take a model of pre of several layers that something goes wrong.

    Is there anything I can try?   Check out the photos.  The photo of the top is one I'm trying to figure. It's a glidecam turned the cap towards the House.  The 3D tracker works very well on images for all the clips.  The bottom two are pans simple tripod.  When the camera moves essentially, the mask turns and changes shape in a sort of bio of passage.  I want to achieve for the top of the master page.

    Thank you!!

    Photo 1.jpg

    photo 2.jpgphoto 3.jpg

    photo 4.jpg

    Here's what you have to do. First of all, make sure that you do not have the Ray-traced rendering engine turned on. Second, your multiple layers composing them. Third transformation of the collapse. Fourth, add a new layer 3D by using a solid red or blue with the screen blend mode and position this layer so that it will cover the whole value demo. Gold and this is the reason for the screen blend mode, use the tool pen to draw your mask on the layer, and then set the layer as a track matte for the demo. animate the matte and you're done.

  • 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.

  • With the last update, I can't minimize a window by double-clicking. I want to cut a window in the dock, not hide all open windows.

    I'm a Mac, set user updated to 30.0. Now when I double click to minimize the window in the dock instead of minimize the particular window open, I'm in I get a new tab. I don't find a way to simply reduce the specific window, only to hide all Firefox. I don't want to hide it, I want to only show the dock window is available not not open on the desktop at this time.

    Suggestions did not exactly help (thanks for trying so fast however) except that to try, I looked in the Menu Bar "Window" drop-down menu and he was there: minimize-> order Mr. he does exactly what I want, reducing the window I'm toward the dock, where he sits with the icon reminding me that this is. Thanks for your help.

  • How to hide all the future updates to the Windows Mail Junk e-mail filter?

    Is it possible to automatically hide or ignore all future updates for Windows Mail Junk e-mail filter?

    I don't have, and never plan to use Windows Mail, and I'm not sure that I could never be convinced that I should, someday.

    Therefore, all the updates of Windows for this are very very little, but the update system keeps their important marking - so I have to hide them every time.

    Is there a technique to automatically remove this update until it is important to my system?

    I use Windows Vista Home Basic SP2.

    No, you can not hide all the future updates Windows Mail Junk Email Filter. But here is a workaround:

    1 configure automatic updates for the 'updates but let me choose... '. "setting.

    2. when an update of the Windows Mail Junk e-mail filter is available for your approval, thereafter, hide it.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Try to hide all traces of The SIMS 2, other users, especially in Indexing Options

    I tried to change the "Indexing Options" but that is the problem.  It seems that any program that has a place in the "start > all programs" cannot be hidden by the Vista Start button search engine, no matter what you do in the "Indexing Options".

    Is there maybe a way to remove programs from Sims of the ' Start > all programs "?  I would like to have in one place, preferably in a folder that I can give a name without a report and give the password.  And of course I need to hide all the search engine of the Start button.

    ... Any ideas?  Any chance this type of capability is available in a program that I could buy?

    Yes you can delete it. Just right click on the entry in the list of programs all and select "Delete" from the menu.

  • hide all cursors

    Hi all

    I use about 16 sliders on my chart.

    At some point, I want to hide all the sliders.

    Is it possible to define the position of all the cursors in one go rather than the adjustment of each slider position individually?

    Thank you

    Ritesh

    We seem to be talking about several different issues here.

    The original question was about how to hide all the sliders if there was a way to do it en masse, or if you had to use a loop. This question has already been answered several times: you must use a loop.

    The second question was to determine if a user clicking on the chart indicates that the user select a cursor. Who answered also by the fact that you use the event cursor Grab.

    The third question is how to distinguish between a user clicking on a field, which indicates that they want to select a track, and the user was just trying to catch a slider. I have provided an answer to this in response to #7, but do not know if there is a more effective method. I'd like to hear if it is good.

  • How to hide/show layers according to color of layer?

    Hello Photoshop geniuses,

    I used Photoshop for a number of years, but I have ventured little in the script.

    I need to come up with a script that toggles the visibility of the layer color (red/orange/yellow/green/blue/violet/grey)

    I also need another script that cycles between layers and check the names (if the FG or BG) and in function of what names they have, say, if the layer is FG, then assign blue color channel, otherwise, if the layer is BG, then re-branded RED color

    If you are wondering why I need it, I'm an artist that we need to create versions of the same texture and texture change of colors but use the same mask in a folder.

    Thanks for the help, would be greatly appreciated.

    I recommend you create a thread for a question.

    show red layers, hide other layers;

    2016, use it at your own risk.

    #target photoshop

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

    the file;

    myDocument var = app.activeDocument;

    get the number of layers;

    Var ref = new ActionReference();

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

    var applicationDesc = executeActionGet (ref);

    var number = applicationDesc.getInteger (stringIDToTypeID ("numberOfLayers"));

    treat the layers;

    var theLayers = new Array;

    As var = new Array;

    for (var m = 0; m<= thenumber;="" m++)="">

    try {}

    Var ref = new ActionReference();

    ref.putIndex (charIDToTypeID ("Lyr"), m);

    var layerDesc = executeActionGet (ref);

    var layerSet is typeIDToStringID (layerDesc.getEnumerationValue (stringIDToTypeID ("layerSection")));.

    isBackground var = layerDesc.getBoolean (stringIDToTypeID ('background'));

    If the layer group not collect values;

    If (layerSet! = "layerSectionEnd" & layerSet! = "layerSectionStart" & isBackground! = true) {}

    theName var = layerDesc.getString (stringIDToTypeID ('name'));

    theID var = layerDesc.getInteger (stringIDToTypeID ('layerID'));

    visible var = layerDesc.getBoolean (stringIDToTypeID ("visible"));

    var theColor = layerDesc.getEnumerationValue (stringIDToTypeID ("color"));

    If (typeIDToStringID (theColor) == 'red') {theLayers.push ([theName, theID])}

    else {theOthers.push ([theName, theID])}

    };

    }

    catch (e) {};

    };

    view red layers;

    for (var m = 0; m< thelayers.length;="" m++)="">

    Layer (theLayers [m] [1], false);

    };

    hide the other;

    for (var n = 0; n)< theothers.length;="" n++)="">

    Layer (like [n] [1], true);

    };

    };

    See the layer.

    Service Layer (theID, showOrHide) {}

    If (showOrHide == false) {var idHd = charIDToTypeID ("Shw")}

    else {var idHd = charIDToTypeID ('Hd')};

    var desc2 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putIdentifier (charIDToTypeID ("Lyr"), theID);

    List1.putReference (ref1);

    desc2.putList (idnull, list1);

    executeAction (idHd desc2, DialogModes.NO);

    };

  • All layers of LayerKind.NORMAL if the document is not active?

    I just discovered the strange behavior. If trying to find the type of layer to a layer in a document that is not currently the activeDocument, all layers are returned as LayerKind.NORMAL. However, if the document is the activeDocument, the correct kind of layer is returned.

    For example:

    Screen Shot 2016-07-24 at 16.23.16.png

    Two documents open, if I have the other document selected, this:

    documents[0].layers[1].kind
    

    Will return "result: LayerKind.NORMAL'., but if I then select the above document, it will return" result: ' LayerKind.CURVES

    What is happening with this?

    Yes, it's a weird bug. It affects other functions when open dealing with scripts with several documents. You really need to make sure that everything you do on a particular file, you must have this file in the current document. For example, you can not duplicate the layers in a file that is not the active document. I'm sure there are other examples, but this is the one I met.

  • Is it possible to rasterize all layers EXCEPT the text layers?

    Is it possible to rasterize all layers EXCEPT the text layers? Other than each non-text layer selection then by selecting layer > rasterize > layers. Maybe someone had a script for this that they could share?

    Layer to smart object, shape layers, layer and setting.

    Use the filters at the top of the layers panel, and then click to view the layer to rasterize (note that include adjustment layers)

    Click the red button to enable or disable filters.

    Select the filtered layer and right-click and choose rasterize

    Job done.

  • Why didn't - not the dialog box 'sample all layers' that displays in the Spot Healing Brush Panel?

    Why the "sample all layers" dialog box is not displayed in my Spot Healing Brush in Photoshop CC Panel - can I have disabled this option in error?  Can I fix it simply?

    Can you post a screenshot of your light?

    That's what you should see the tool options in photoshop cc 2015.1.2 with the Spot Healing Brush tool selected.

    Check in the photoshop Preferences > workspace and see if close Enable option bar is selected that has a different appearance of the symbols in the options toolbar.

  • character toggle Panel hides all docked panels

    With the latest "upgrade" menu bar - "Character/paragraph rocker panel" hides all anchored panels

    See the link:

    http://www.mediafire.com/watch/93sucude9s1uncn/PS_characterPanel.MP4

    Hi Jeff,

    The behavior you're seeing is correct and expected.  What is anchored with the character and paragraph panels becomes hidden with them.  This behavior is exactly the same as the versions previous (I even checked).

    Thank you

    David

Maybe you are looking for

  • iMovie has stopped working since iOS 10

    iMovie has stopped working since iOS 10 Now, all I see is a black screen and then it throws me out of the app however does not close the app and the problem does not improve. I lost my summer and extra time making a super great way to 5 hours difficu

  • Desktop icons behaves badly

    I was wondering if someone could help. I'm 1 of those people who likes elements of the Office organized in a certain way. For some reason any, since I upgraded to El Capitan (maybe same Yosemite), whenever I restart my MBPro, everything in the re - a

  • Time travel has stopped working after the upgrade to watch OS 3

    Hi allSince I upgraded to 3 watch OS stopped working time travel feature - by turning the digital Crown now does nothing.  The digital Crown works fine on the other screens, for example the notifications, but not on the dial of the watch itself.  I d

  • Air ipad battery problem

    Good evening, my name is Jaroslav, please help me, after installing ios 9.1.3 on air from my ipad, my device is started to carry out twice as fast... But according to Apple, the new ios 9.1.3 update makes the device faster and increases, autonomy, de

  • Pavilion 500 - A60 wireless connection mouse

    This computer comes with a mouse and wireless keyboard, although I didn't know it when I ordered it. The dinky mouse kills my hand. In addition to arthritis, a little, I have minor injuries that make it difficult to use the mouse. How can I connect m