Combine in merger Mode?

I have a tedious production job, I'd love automation assistance.

I get page layouts with multiple layers of pictures of products (with transparency) in Normal blending mode. Most of these layers also have separate layers of shade in the blending mode to multiply. (These layers have sometimes masks, othertimes not.) Depending on how the file was built, layers of product could be close to their layers of the shadow, or they can't, making it difficult to organization and contraction.

(In case it matters, sometimes all the layers (products and shadows) are housed within a single group, there is sometimes some groups in all)

Finally, I would like to merge all the layers in the layer product a way Normal, and all the shadow of nappies in a single multiply layer mode (with masks applied), with two interconnected layers.

Layers can be identified and merged according to blend modes?

This might work.

But, this does not take into account possible masks on groups and only multiply them artLayers in a group and all others in another.

// move all artlayers set to multiply and all other artlayers into two layersets and then merge those;
// 2011; use it at your own risk;
#target photoshop;
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var artLayers = collectLayers(myDocument);
var multiplyGroup = myDocument.layerSets.add();
multiplyGroup.name = "multiply";
multiplyGroup.blendMode = BlendMode.MULTIPLY;
var normalGroup = myDocument.layerSets.add();
normalGroup.name = "normal";
for (var m = 0; m < artLayers.length; m++) {
     var thisLayer = artLayers[m];
     if (thisLayer.blendMode == BlendMode.MULTIPLY) {
          thisLayer.move(multiplyGroup, ElementPlacement.PLACEATBEGINNING)
          }
     else {
          thisLayer.move(normalGroup, ElementPlacement.PLACEATBEGINNING)
          }
     };
normalGroup.merge();
multiplyGroup.merge();
};
////////////////////////////////////
////////////////////////////////////
////////////////////////////////////
////// function collect all layers //////
function collectLayers (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 to layersets;
          if (theLayer.typename == "ArtLayer") {
// exclude background layer;
               if (theLayer.isBackgroundLayer == false) {
                    allLayers.push(theLayer)
                    }
               }
          else {
               allLayers = allLayers.concat(collectLayers(theLayer))
// this line includes the layer groups;
//               allLayers.push(theLayer);
               }
          };
     return allLayers
     };

Tags: Photoshop

Similar Questions

  • How to change the key combination to merge again layer (Ctrl alt shift e)?

    How to change the key combination to merge again layer (Ctrl alt shift e)?

    I have not found it in keyboard shortcuts.

    You could make an action to a key to assign a F as a work-around

  • By combining or merging drives...

    I have a Dell Dimension desktop E510/5150.  I have 2.5 ram and 80 GB of memory.  I added a second 300 GB hard drive to store my photos, movies etc... Now I've updated to windows vista from my xp version.  The thing is I C disc, of course, for the OS, but I have also 2 small discs or partitions named E and F that I don't want.  I want to have this extra memory that I don't use of all added to my C drive.  It's just sitting there.  One is 20-something and the other 4.  I really don't need because I have already added an extra disk to store things.  How can I merge or combine them to my C drive.  I tried to start vista in my office again and the part where it asks to choose a drive, I tried to remove small, E and F and it wouldn't let me.  This was not an option that was available.  Thanks in advance...


  • Muse of merger Mode change / difference between Muse &amp; Xd

    Hello, I just started to use the Muse, and I have a few questions.

    1. I have difficulties to find a way to change the mode of fusion in Muse. As in Photoshop and Illustrator, I thought that I could set to multiply, overlay, etc., but I couldn't find the opacity setting, but nothing else. I thought that this person below, has the same question, so I followed the answer and bought the Muse Supply widget of Blend Modes, but it doesn't have the setting I was looking for. This widget only allows me to select two or more items and define ways of merging with them. (Like, by selecting an image and color) What I'm trying to do, is simply to change the mode of fusion of a unique shape. For example, I have a rectangular shape and I want it to be "multiply" mode, the background image will appear through it.

    Blend in Muse CC modes

    2. another question, I bought BackBlend as well, because I thought it's the widget to solve my problem, but this one isn't either. But it seems to be an interesting tool, so I am now, but I have no idea how to use. Anyone know how to use it? There is no manual of the user on the site. !

    3. is it possible to open what I did with Muse in Dreamweaver and make changes there? Or y at - it another way, I can make changes to the file Muse with more flexibility?

    4. oh, and what is the difference between Muse and the design of the experiment? I've seen some tutorials for two of them, but have not yet understood the difference.

    Sorry for all the questions, I'm trying to learn them now!

    Thank you in advance for your help!

    1 muse does not support blending modes, because blend modes are not supported by the real browsers

    2.?

    3. you can open the output files of Muse (not the file .muse itself), in Dreamweaver, but this isn't the expected workflow. Changes that you make here are not part of your document of Muse and will be overwritten during the next export.

    4. Design experience is no application to create web sites, it is an application to create interfaces user and application/site plans.

  • How Page Break, Livecycle form with combined file merged

    Hello to you all and happy Friday for those who have the weekend off.

    I would like to know what the own/easy way to make a page break. I recently created a file in Adobe Livecycle and merge this file with another PDF file that I use as a cover sheet to a notice that I will distribute soon.

    The reason why I want to add a page break is to separate the "intendant cover sheet" with the rest of the leaves that are a notice. I want to be able to set the properties for printing 2-sided printing but separate from the rest of the first sheet.

    Any tips?

    Also, I wanted to add. Adobe Acrobat 9 Pro does not allow to combine XML files, instead of save my form of livecycle designer that I had to print in PDF Primo that I could save a version no XML of my form and use the functionality combine in Acrobat 9 Pro.

    .... My original document was saved as .tds like that I could edit if necessary. Just thought I would wear the foregoing to the attention of the readers so they know what I've done.

    Since I print to PDF first of all, I am now able to use my file in Acrobat and combine it with another PDF file that I have that I want to use it as a cover sheet. This is where I want to separate the 1st page when printing to the rest of the pages do not print on the back of the cover sheet when you select print 2 sides

    Well with some good research I found my answer, and the best solution has been implemented of forms for printing. For those who have stumbled on this "Using page sets to control printing double-sided and single-side form a" works very well for XML files that are not merged with no XML.

    For those who have files not XML as you combined files XML not in a "insert after the first page in a form intended for printing two-sided with a blank page' is the solution you are looking for. Free headache as defined page controls and the location of the page master are not available for non-XML.

    I am able to add controls and the master page on my original XML file, but as I had to convert it to XML not to combine with another XML file not that these features are at the door.

    Hope all have a great weekend.

  • Essbase server does not start: fatal error: security file created in the mode of Fusion, but the current environment isn't in merger mode.

    Hello

    We are unable to start the Essbase server after trying to configure SSO between OBIEE and Essbase.

    Here are the details of the journal:

    ----------------------------------------------------------

    14/10/28 10:35:45 start

    ------------------------------------------------------

    Info: Essbase reduced the number of soft file descriptors because the 32K limit has been exceeded. Exceeding the limit can greatly increase the loading time of application.

    Environment variable [HYPERION_LOGHOME] is - it allows to define the location of the log file.

    The log location is [/ u00/app/mw_home/forums/instance1/diagnosis/newspapers/Essbase/essbaseserver1/essbase].

    [Mar 28 10:35:45 Oct 2014] Local/ESSBASE0 / / / 47677451854848/Info (1051283)

    Recovery of license information, please wait...

    [Mar 28 10:35:45 Oct 2014] Local/ESSBASE0 / / / 47677451854848/Info (1051286)

    The license retrieved information.

    The user 65535 Essbase user 65535 planning system

    [Mar 28 10:35:45 Oct 2014] Local/ESSBASE0 / / / 47677451854848/Info (1311019)

    Classpath lors de l'initialisation de la JVM : [ : / u00/app/mw_home/Oracle_BI1/common/jlib/11.1.2.0/dummy.jar:/u00/app/mw_home/wlserver_10.3/server/lib/weblogic.jar:/u00/app/mw_home/Oracle_BI1/... /oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/u00/app/mw_home/wlserver_10.3/server/lib/wls_api.jar:/u00/app/mw_home/Oracle_BI1/common/jlib/11.1.2.0/epm_j2se.jar:/u00/app/mw_home/Oracle_BI1/products/Essbase/EssbaseServer/java/essbase.jar:/u00/app/mw_home/Oracle_BI1/products/Essbase/EssbaseServer/java/ essbaseRegistry.jar]

    [Mar 28 10:36:28 Oct 2014] Local/ESSBASE0 / / / 47677451854848/Info (1051199)

    Single Sign-On initialization succeeded!

    [Mar 28 10:36:28 Oct 2014] Local/ESSBASE0 / / / 47677451854848/Info (1051627)

    Info: Essbase reduced the number of soft file descriptors because the 32K limit has been exceeded. Exceeding the limit can greatly increase the loading time of application.

    Fatal error: the security file was created in blend mode, but the current environment is not blending mode... Restart Essbase using the last backup file, or set the ENABLESWITCHTOBACKUPFILE config to allow Essbase automatically uses a backup security file

    We have updated the essbase.cfg and define the TRUE ENABLESWITCHTOBACKUPFILE but that didn't work.

    Also, we have renamed the file essbase.sec in essbase_bak.sec and restarted the service. still no luck.

    Essbase Server is now running

    Followed the instructions in the document below:

    https://support.Oracle.com/epmos/faces/DocumentDisplay?_afrLoop=322765872961140&ID=1676072.1&DisplayIndex=1&_afrWindowMode=0&_adf.CTRL-State=f6suct4ab_302#cause

  • Question of merger Modes

    Not all my blending modes are available, some of them are gray sense that I can't select them. I tried to restore my settings preferred. How can I fix?

  • How to change the Merge mode key? (mac)

    I used win7 in past and when I want to change the mode in layers of simple fusion I choose this layer, click on for the blending mode and roll down with the "ARROW DOWN" key but in MAC OS X that will to some don't work not. So my question is, how I roll through this palette? Is there a shortcut?

    Thank you very much

    Instead of using the arrow keys, there is a better key for the mixture of fashion, which releases the mouse.

    MAJ- Goes up in the blending mode

    Shift + Goes down in blending modes

    Make sure you are on the move tool first (you can hit v to switcch tools), as the blend mode shortcut also works on the blending mode for a tool if the tool has a (for example: brush).

  • I have two Apple Id I only want one.  How to combine them?

    I discovered that I have two apple ID.  How or can I combine into one.

    You cannot combine or merge AppleIDs.  You can stop using an If you want, but what you have purchased under this AppleID, as well as your account related iCloud that AppleID will remain separate.

  • Documents of the murky combination

    I have 11 chapters of a book, all created separately, but in the same format. I inserted a title at the beginning of each chapter page. Now when you try to combine all 11 chapters by using "insert > object" the last page of each chapter prints (shows) on the title page of the next chapter. How can I fix it?

    Hello

    See this link:

    http://www.PCWorld.com/article/152620/how_to_combine_multiple_word_documents.html

    http://www.mydigitallife.info/combine-and-merge-multiple-documents-in-Microsoft-Office-Word-2007/

    Let us know.

  • How to combine digital charts

    Hello

    How to combine or merge the table 1 d of digital waveforms with a simple digital waveform. As givien in the attached VI, I want to display the datalines chart & graph of control lines in a simple graph of digital waveforms.

    Thanks in advance

    Hi gurum,.

    Well, you can use "Build Array" to merge the 2 1 tables and connect the output to the digital waveform curve, as illustrated below:

     

    It may be useful

    Warm greetings,

    Lennard.C

  • How to merge several documents to my e-mail to adobe in Windows?

    How to merge several documents to my e-mail to adobe in Windows?

    Hi lindas27936780,

    Download PDF attachments on your system & then combine them combine or merge files into a single PDF, Adobe Acrobat DC

    Kind regards

    Meenakshi

  • Newbie question: how to merge two pdf files?

    Hello, I have two PDF documents, and I'm putting one right in the middle of the other. Can someone guide me through this process? Thank you.

    Hello

    Please see the following link for information on how to merge PDF'.

    Acrobat help. Combine or merge files into a single PDF file

    Concerning

    Sukrit diallo

  • How to merge several PDF files into a PDF file?

    How to merge several PDF files into a PDF file? for example, I've scanned 3 pages of the same document on my computer and they come up on top of the computer as a separate PDF files, but they are 3 pages that should be in the same PDF file?

    Hi m.zaffar,

    In order to combine the PDF you can subscribe to Adobe PDF to combine files of service https://cloud.acrobat.com/combinepdf

    KB doc. for help Document Cloud Help | Adobe PDF package using.

    Or

    You can use the Acrobat free trial download Adobe Acrobat application | Acrobat Pro DC.

    KB doc. using Acrobat help. Combine or merge files into a single PDF file.

    Kind regards

    Nicos

  • Insulation of the register HKCU mode

    I currently feel som with writing questions in HKCU on physical system of Applications. I want the Application to write to the physical registry on HKCU because its storage username and window/columns, default instances, locations etc for this Application it.

    Then when I put the register HKCU merged mode Applications survey of errors not being able to write the values. I check regedit and the KEY is created, but the values are not created. What I am doing wrong?

    I also tried the following, instead of setting the registry location real in the HKCU capture file, I allowed and tried to settle the whole registry merged through the package.ini fashionable, but he threw the same mistakes.

    Its packaged in Thinapp 5 on a Windows 2008 R2 server. Application works very well in the environment thinapp with the HKCU as default WriteCopy.

    Thanks for any input

    Finally, we got a stable version published this week that have solved this problem. Version 5.1 works as usual with merged record.

Maybe you are looking for

  • How to stop sliding windows between open applications

    There is an irritating scenario whereby windows application open slide and disappear instead of (as I him wish) remaining on the desktop. If anyone can help by telling how to stop this considerable irritation, please? Kind regards Séverine

  • My Satellite A355D - S6889 OS installer cannot start

    What should I do?How can I recover my Installer?

  • RAM upgrade compaq presario c700

    Hi, I have a compaq presario c700 runing on vista Home premium. It has only 1 GB of ram installed so I tried to move to 3 GB of ram, all I get is a blue screen saying there is Aproblem, I tried to install a new operating system, but it won't let me?

  • 0xe0000100 error code when you try to manually install printer drivers

    Hi all I am running windows 7 Home premium 64-bit edition. I am trying to install the drivers manually for my brother HL-2040 printer, as he was unable to do it automatically. When I plug the printer to try to download the drivers but find that there

  • Problem AP1522 with WLC 4402

    Hello I have a problem installing a 1522 AP to the WLC 4402, it is not recognized, what can be? Check all connections and all is well thank me for help