Help! to merge the layers to single layer

Hello world

I have this script to merge the layers "only 2 layers will be merged... "Add layer layer B &", which is also found in the indesign scripting guide.

I'm trying to merge the infinite layers within the document to single layer.

can any modify this script, according to my request.

main();

main() {} function

mySetup();

mySnippet();

myTeardown();

}

function mySetup() {}

myDocument var = app.documents.add ();

myDocument.layers.add ();

}

function mySnippet() {}

myDocument var = app.documents.item (0);

fragment of <>

Given a document "myDocument" containing at least two layers...

var myLayerA = myDocument.layers.item (0);

var myLayerB = myDocument.layers.item (1);

myLayerA.merge (myLayerB);

< / fragment >

I twisted like that... script runs without error, but no results, leaving no merged layers...

main();

main() {} function

mySetup();

mySnippet();

myTeardown();

}

function mySetup() {}

myDocument var = app.documents.add ();

}

function mySnippet() {}

myDocument var = app.documents.item (0);

Given a document ""myDocument "containing infinite layers..."

var myLayers = myDocument.activeLayer.everyItem ();

myLayers.merge;

}

function myTeardown() {}

}

Thank you

Babylon.

are super fantastic vamit...

Thank you buddy.

Tags: InDesign

Similar Questions

  • merge the layers with their filters?

    Hey Hello,


    Is there a method in Flash cs6, we could merge with filters layers?

    I posted some filters (shadow / light/etc.) to several clips in my flash design.

    Now if I select ' Direct/Cpu' rendering mode, the speed will significantly slow down.

    If I select the "GPU" rendering mode, the speed is perfect, but I lose all the effects (shadows, glows, etc..)


    What is the best solution in this case?

    In Adobe Photoshop , there is an option (The rasterize Layer Styles) to merge the layers with all styles.


    Is there a similar option in Adobe Flash to merge video clips with filters?


    Thank you very much

    You can use a bitmapdata object to create a bitmap image of your movieclip not transformed (using the draw method) and use the applyfilter method to apply a filter to your bitmapdata object.

  • Merge the layers, keep layers

    With the help of the holding of the ALT key you can go to merge layers and your will remain intact, but there will be a merged copy of layers, it does not work?

    I solved my own question

    Know you guys it's the only way to merge the layers, while keeping the various layers in tact?

  • Merge the LAYERS VISIBLE on the new layer

    a very common thing I use is merge the VISIBLE LAYERS on the new layer.

    now I know that in the config. I can add a MERGE VISIBLE button, which is the equivalent of CTRL + SHIFT + E, but I use SHIFT + CTRL + ALT + E all the time so I can combine things, but on a new layer... How can I do this?

    IM thinking that I use the Configurator, more and more, he needs a type of option so that when you add buttons and menu commands, if you could have a small check box to add additional options of CTRL or ALT or SHIFT for all orders to extend/tweak these commands Assistant... as is the seventh thing I'm wishing there was a way to unless of course I can add the code in the box "script."

    TX for any input, gg

    Quote:
    Posted by: gary greenwald
    Hello, thanks for responding.
    I tried your code so that I could send to merge the VISIBLE LAYERS as a ctl + shift + alt + e command instead of shift + ctl Edlin (so do a MERGE VISIBLE on a new layer and not simply merge down all layers), but replace the default with your code code has not changed anything , I could still see it merge all visible layers on a new layer, he just did the regular fusion...

    If you can try again and let me know if you find, id be overjoyed because I really use TMS + ctl + alt + e on each photo several times, but I never use TMS + ctl + e... TS just a matter of sending this additional order ALT in the code, thanks
    Gary

    Try this:

    var idMrgV = charIDToTypeID ("MrgV");
    var desc10 = new ActionDescriptor();
    var idDplc = charIDToTypeID ("Dplc");
    desc10.putBoolean (idDplc, true);
    executeAction (idMrgV, desc10, DialogModes.NO);

  • merge the layers of text to 1?

    is anyway to merge the text layers multiple combined with 1 in PS for this menu? can't seem to do it.

    I like having my menus without 1 million layers and I have an outer glow on my text layer, but disliked how have-1, so I have it duplicated for 3 layers of text for the link (all 3 with glow) but now I want to consolidate layers 3 text 1 text layer, no way to do? I want just a space cleaner sound to work, get out of hand with text by link 3 layers...

    Missing the selection of layer options in the upper right, rather than the merge options:

    Gives you this:

  • Is it possible to link to the .doc files as I would image help to merge the data from the files?

    I'm trying to find a way where I can link to multiple documents in a master document. I know how to put Word/Excel files in InDesign-related, but is there a way I could build a document using data merge? I guess I want a link to every document in my CSV, possibly with a @ column header. Has anyone tried this before with any success?

    I have trouble understanding exactly what it is you want to try and do.

    Regarding the data merge, the answer is no. When a header field which has a "@" before the domain name, InDesign data merge function will import images that are people like .jpg, .tif, .eps .gif .pdf .png .ai; but will not import content such as .docx .doc .rtf or .txt. It is worth noting the help that Adobe (InDesign help |) Data merge) does not list what types of images will import as part of a data merge. Another additional note - if import a PDF or AI is many pages long as part of the merger of data, the merger will take only the first page of the PDF / I, and it is not a way to make the merger import a different page.

    If you want to import a large number of word files in an InDesign file all at once in the same block of text, I wrote a piece about it on InDesignSecrets: http://indesignsecrets.com/place-word-files-one-frame.php

  • Y at - it a good script to collect all the layers in 1 layer?

    I am doing something similar to the selection of layers and using collection based on new layer in Illustrator. It runs successfully on several layers, but for others it will expel just ' mistake Illustrator: 1346458189 ("PARM").

    My script is really simple and I use it to collect layers into a layer named "Earned", if it has more than 2 layers. I even tried the fix suggested in this Readme: http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scripting/Readme.tx t. But I get an error just when you reference a running level. I tried directly referring to the current in the loop layer, but it always causes problems. If I get rid of the line of movement (which is the whole reason for this script), it works fine. I tried to let the script sleep and a few other things, but cannot make it work properly. I've included some debugging lines who write in the console to make sure that everything is properly defined

    var = app.activeDocument actDoc

    var layerCount = actDoc.layers.length;

    $.write("\n//layer Name\nLayer Count:" + layerCount + "\n///").

    var placeInLayer = actDoc.layers ['Collected ""];

    If (layerCount > 0) {}

    for (i = 0; i < layerCount; i ++) {}

    try {var topLayers = actDoc.layers [i] ;}

    catch("|)    "+e) {

    $.write (e)

    }

    .write $("\nLayer name:"+ topLayers.name+"|)    Count: "+ i +" ")".

    Sublayers = topLayers.layers;

    If (topLayers.name == "Collected") continue;

    topLayers.move (placeInLayer, ElementPlacement.PLACEATEND);

    }

    }

    Try a loop back... from the bottom layer.

  • Help!  All the objects on a layer are framed in red

    I'm in the middle of a picture and all of a sudden all the objects on a layer are framed in red.  These aren't the stroke, but rather it is as if I am the display mode overview and overview at the same time.  I searched the forums, but I can't find anything that looks like what I see.Illustrator Outlines.jpgExample2.jpg

    You use maybe plug-ins? Which?

    Is one of the layers has a appearance which causes the stroke to appear? You can see in the target symbol

  • CS5 - why the Edit &gt; auto-merge the layers (and layers automatic alignment) gray and not accessible?

    I have CS5 and would like to try focus stacking.  I have file > automate > Photomerge with some pictures.  They were aligned in layers.  I want to auto-merge layers, but the function is grey and is not accessible.

    Thank you
    Mark

    What type of layers you want to mix?  It will not work with dynamic objects.  Show a screenshot of your panel of layers, with the selected layers you want to merge.

  • Apply the transition to single layer

    I have a logo with an alpha channel, to which I would apply a transition when it appears in the timeline - in this case the "Directional" blur

    In this case, the layer below is a graphic background I want to leave it alone.

    I can't find a way to make the transition will apply ONLY to the logo layer, it always blurs the layer below as well.

    The ideas people?

    The usual solution in this case is to make the connected music and transitions in a compound clip - then the transition will not affect those underlying.

  • Help! Merge changes in a single catalog LR in a former a folder of images for...

    Hey friends! We you handle a difficult series of photos and moved everything to an external hard drive. Without thinking, I opened and made changes to a picture folder on our main computer and then later on changes in another folder of images in the catalog of external hard drive file.

    I would like to merge everything into one place without losing any changes for our two separate records of more recent images. Is there an easy way to do this?

    Thank you!

    On the external drive, open the LR catalog, select the folder of interest, right-click on the file and choose export this folder as a catalogue...

    On the internal disk, open the Lightroom Catalog, select file-> import from another catalog and select the catalog that you created from the external drive.

  • How to keep the adjustment layer filter Active Photo after the merger of layers

    I am trying to create a filter of type "instagram" for a mobile device that will act as overlay more photos to upload people from themselves. I have all set up perfectly, layer with a mask, leaving a transparent part of the image for their selfie to fit in. The problem lies in the filter of picture I need to stay active. When I merge the layers and save the file, I lose this ability. I need the image to have a blue tint above him, including the selfie that the user will download themselves in the image I created. I am completely puzzled, that never happened to me before.

    Does anyone have an idea how to do this? Help, please!

    Thank you!

    I think that you must do in the application. The mobile device will not work in Photoshop and if you run Photoshop as a web application you would violate your agreement with Adobe. So I have no idea what is your way of thinking. Where Photoshop is active in the process. It sounds like your need for transparent surface is an area that has blue color of low opacity a PNG you display superimposed on the image of the user

  • move all the layers into a single layer

    Hello

    I am new to the script and I need to make a script that the passage of all the layers into one layer (in Illustrator I press CTRL + A and then CTRL + G in layers and works) but I need in the script

    Please could someone help me?

    Thank you!

    I found the solution

    main() {} function

    If (app.documents.length == 0) {return ;}

    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

    var doc = app.activeDocument;

    var mast = doc.layers.add ();

    Mast.Name = "original";

    var group = mast.groupItems.add ();

    var pageIt = mast.pageItems.add ();

    While (doc.layers.length > 1)

    {

    While (doc.layers [doc.layers.length - 1].pageItems.length)

    doc. Layers [doc.layers.Length - 1] .pageItems [doc.layers [doc.layers.length - 1].pageItems.length - 1] .move (grup, ElementPlacement.PLACEATBEGINNING);

    doc. Layers [doc.layers.Length - 1] .remove ();

    }

    }

  • Single-layer or double-layer DVD?

    Hello

    I have a DVD for a customer who now wants to make a small number of copies with the help of a third-party software.

    They asked me if he should order single-layer or double-layer DVD? I think the answer is single-layer, but I assure you.

    When I did the DVD, I set the size to 4.7 GB, although I used only 3.21 GB.

    This means that I should tell them to layer single order, right?

    Thank you

    Carolyn

    Right.

  • How can I add new images to the layers panel?

    Hello

    I am brand new with photoshop elements 11.  I'm having a problem understanding how to import new images in the layers panel.  If I type "create a new layer" all that I get is an empty layer.  I want to do is to import an image where I'll cut part of it and layer it on another image.  For example: of lets say I want to put a picture of myself in front of a tree.  I want to take the image myself from a photo and he sleeps on the photo that has the tree on it.  How can I get both of these images in the layers panel even?  I can get the picture of me in the layers panel as layer #1, so I can cut myself out of the picture.  My problem is when I try to import the picture with the tree on this subject, it opens upward in a new tab.  If I try to hit 'create a new layer', only a white layer appears above my first coat.  I tried to drag the new image on the layers panel, but will not join.  All the tutorials I could find and monitor, have already all the images they work with pre-loaded in the layers panel.  I just need to know how to get my pictures in the Panel, so that I can start working with them.

    Thank you in advance for any help you can give.

    Glen

    P.S. I'm working on an iMac 2009

    After selecting, you press Cmd + J and which will put the selection on a new layer.

    Drag your tree to the top of the location of the project in the main image window.

    Organize layers for example you may need to drag the tree stratum under the layer with yourself.

    See my tutorial that uses a background solid colr.

    http://forums.Adobe.com/message/4166187#4166187

Maybe you are looking for