Layer comps to files with auto trim

Hello

I use the modified script "Comps to files.jsx" export my compositions of layers (with the label of the composition of layers as my file name)

http://www.PS-scripts.com/BB/viewtopic.php?f=9 & t = 5277

It of a good script and makes my worklfow.

The only thing missing for me is a compensation option when I run this script. as some of the layers have different heights

After I run the script, I have to manually crop the jpgs in PS and then save again.

In the script of "Layers to files" by default that comes with the PS, there is an option for auto trim png upon export of layers

I am grateful for any help on these questions that I have.

There's something similar for layer comps?

- I changed the 'Comps to files' scrip originalt and I now have the possibility (if I chose the png as my file type) to cut the layer, but when I open the exported file it din't cultures.

Is there an option for auto trim jpg?

Thank you

Noel

There was a typo in one of the variables in JPG.  You don't know how it worked for me with this typo.  Re-download and try again.

Tags: Photoshop

Similar Questions

  • How layer comps are linked to the layers in the PSD file?

    I am developing an application of external command line c ++ to analyze a PSD file (using the PSD specification - http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/PhotoshopFileFormats.htm#50577 409_17115) in order to extract important information. One of the main things I need is information linking layers to the layers themselves. Digging through the section Image resource specifying "Layers - 1065" I'm only able to extract the name, comments, etc. on the comp. layer is the question I have: how the layers are referenced by the layers in the PSD file? I need to know what layers are applied to each layer comp. Looking through the scripts provided with the PS (for example layers in files), the composition of layers is always "applied" before watching to see what are the layers inside this model. It seems to be the creation of an Action and the implementation of this action with the class identifier of the layer comp before watching his diapers, so this method should know on which layers are referred to by this layer comp. Specifically, what do I need to be able to do and, so far, have failed.

    It is important that I stick with c ++ & that it be an external application, so the Plugin SDK is not much help here.

    I would really appreciate any ideas/suggestions on this subject.

    Thank you all.

    If someone falls on this issue once again, last night, I found the data using a control of the layer comp binary ID I have model layer section. The composition of layers--> data layer is inside a section of "undocumented"data under the tag Layer Records: shmd

    Hope this helps someone.

    TREV-

  • How can I continuously auto-save and auto-nom of the JPEG files with a controlled time interval

    Hello

    I am newly involved in some Labview projects out of my knowledge. I try to save multiple images to JPEG from a task of direct imaging to a folder in the hard disk of the computer some every minutes. I would like to quote these files with the date and time (for example. Img_06012011_1635. (jpg). Then, after hours long image capture, I can have all the image files in a proper order.

    My goal is to have auto JPGs saved and self-appointed with data and the time right now. I also need to control the time between each economy.

    Could you please show me some advice about this? See the attached vi, I know I have to do something on the side "way of writing" at the top right. Thank you!

    Start with this

  • Export to the file with Alpha layer

    Hello

    I m looking to create an Automation that takes each layer in a Photoshop Document and export it to a TIFF file with an Alpha channel.

    There was very little action that export the layer selected as a TIFF with Alpha and there is of course the function of 'layer to export to files '.

    I don't know how I can combine these functions, and it would be great if I could get this feature in a droplet.

    Maybe you can guide me in the right direction

    It treats pixel and the type of layers and masks on the groups would apply, perhaps you want to give it a try.

    Save your hair without transparency, but with pixels alpha channels and layers type;

    2014, use it at your own risk.

    #target photoshop

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

    myDocument var = app.activeDocument;

    var myDocument.name.match = basename (/(.*)-.) [ ^\.] +$/)[1];

    try {var docPath = myDocument.path}

    catch (e) {var docPath = "~ / Desktop"};

    var theDup = myDocument.duplicate ("thecopy", false);

    deleteAlphaChannels();

    main (theDup, docPath, basename);

    theDup.close (SaveOptions.DONOTSAVECHANGES);

    };

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

    getAllLayersBounds.jsx

    main function (dittos, docPath, basename) {}

    showAllLayers();

    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"));

    //////

    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'));

    var layerKind = layerDesc.getInteger (stringIDToTypeID ("layerKind"));

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

    "adjustment".

    otherwise the layer group.

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

    If (layerKind == 1 | layerKind == 3) {}

    hideOthers (m);

    do twice;

    var theDup2 = theFile.duplicate ("thecopy2", true);

    addTransparencyAsChannelaAndFlatten();

    Save and close;

    saveCopyAsTif (theDup2, docPath + ' / ' + name of base + '_' + theName ".tif");

    theDup2.close (SaveOptions.DONOTSAVECHANGES);

    hideOthers (m)

    };

    //

    };

    }

    catch (e) {};

    };

    };

    substance.

    function addTransparencyAsChannelaAndFlatten () {}

    try {}

    transparency mask;

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

    var idMk = charIDToTypeID ("Mk");

    var desc3 = new ActionDescriptor();

    var idNw = charIDToTypeID ('Nw');

    var idChnl = charIDToTypeID ('channel');

    Desc3.putClass (idNw, idChnl);

    var idAt = charIDToTypeID ('At');

    ref2 var = new ActionReference();

    var idChnl = charIDToTypeID ('channel');

    var idChnl = charIDToTypeID ('channel');

    var idMsk = charIDToTypeID ("Msk");

    ref2.putEnumerated (idChnl, idChnl, idMsk);

    Desc3.putReference (idAt, ref2);

    var idUsng = charIDToTypeID ("Usng");

    var idUsrM = charIDToTypeID ("rocket");

    var idTrns = charIDToTypeID ("Trns");

    Desc3.putEnumerated (idUsng, idUsrM, idTrns);

    executeAction (idMk, desc3, DialogModes.NO);

    alpha channel of the layer mask.

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

    var idDplc = charIDToTypeID ("Dplc");

    var desc4 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    Ref3 var = new ActionReference();

    var idChnl = charIDToTypeID ('channel');

    var idOrdn = charIDToTypeID ('Ordn');

    var idTrgt = charIDToTypeID ("Trgt");

    Ref3.putEnumerated (idChnl, idOrdn, idTrgt);

    Desc4.putReference (idnull, ref3);

    executeAction (idDplc, desc4, DialogModes.NO);

    remove the layer mask;

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

    var idDlt = charIDToTypeID ("Dlt");

    var desc5 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    ref4 var = new ActionReference();

    var idChnl = charIDToTypeID ('channel');

    var idChnl = charIDToTypeID ('channel');

    var idMsk = charIDToTypeID ("Msk");

    ref4.putEnumerated (idChnl, idChnl, idMsk);

    Desc5.putReference (idnull, ref4);

    executeAction (idDlt, desc5, DialogModes.NO);

    flatten;

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

    var idFltI = charIDToTypeID ("FltI");

    executeAction (idFltI, undefined, DialogModes.NO);

    } catch (e) {}

    };

    by mike hale, through paul riggott.

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

    function selectLayerByIndex (index, add) {}

    Add = undefined? Add = false: Add

    Var ref = new ActionReference();

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

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ("null"), ref);

    If (Add) desc.putEnumerated (stringIDToTypeID ("selectionModifier"), stringIDToTypeID ("selectionModifierType"), stringIDToTypeID ("addToSelection'));

    desc.putBoolean (charIDToTypeID ("MKV"), false);

    try {}

    executeAction (charIDToTypeID ("slct"), desc, DialogModes.NO);

    } catch (e) {}

    Alert (e.message);

    }

    };

    Remove alpha channels.

    function deleteAlphaChannels () {}

    Var ref = new ActionReference();

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

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

    var docDesc = executeActionGet (ref);

    var theChannels = docDesc.getString (stringIDToTypeID ("numberOfChannels"));

    Check the channels;

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

    ref2 var = new ActionReference();

    ref2.putIndex (charIDToTypeID ("one"), m);

    var channelDesc = executeActionGet (ref2);

    Alpha var = channelDesc.hasKey (stringIDToTypeID ("alphaChannelOptions"));

    Remove alpha channels;

    If (alpha == true) {}

    keep the channels spots;

    If (channelDesc.getObjectValue (stringIDToTypeID ("alphaChannelOptions")) .getObjectValue (strin gIDToTypeID ("color")) .hasKey (stringIDToTypeID ("book")) == false) {}

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

    var idDlt = charIDToTypeID ("Dlt");

    var desc7 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    Ref1.putIndex (charIDToTypeID ("one"), m);

    desc7.putReference (idnull, ref1);

    executeAction (idDlt, desc7, DialogModes.NO);

    };

    };

    };

    };

    Save pdf.

    function saveCopyAsTif (myDocument, path) {}

    tif options;

    tifOpts = new TiffSaveOptions();

    tifOpts.embedColorProfile = true;

    tifOpts.imageCompression = TIFFEncoding.TIFFLZW;

    tifOpts.alphaChannels = true;

    tifOpts.byteOrder = ByteOrder.MACOS;

    tifOpts.layers = true;

    Save the copy;

    myDocument.saveAs ((new File (path)), tifOpts, true);

    };

    hide others.

    function hideOthers (theIndex) {}

    hide the other;

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

    var idShw = charIDToTypeID ("Shw");

    var desc10 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var officielle4 = new ActionList();

    ref7 var = new ActionReference();

    Ref7.putIndex (charIDToTypeID ("Lyr"), theIndex);

    LIST4.putReference (ref7);

    desc10.putList (idnull, list4);

    var idTglO = charIDToTypeID ("TglO");

    desc10.putBoolean (idTglO, true);

    executeAction (idShw, desc10, DialogModes.NO);

    };

    by mike hale, through paul riggott.

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

    function selectLayerByIndex (index, add) {}

    Add = undefined? Add = false: Add

    Var ref = new ActionReference();

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

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ("null"), ref);

    If (Add) desc.putEnumerated (stringIDToTypeID ("selectionModifier"), stringIDToTypeID ("selectionModifierType"), stringIDToTypeID ("addToSelection'));

    desc.putBoolean (charIDToTypeID ("MKV"), false);

    try {}

    executeAction (charIDToTypeID ("slct"), desc, DialogModes.NO);

    } catch (e) {}

    Alert (e.message);

    }

    };

    Display all layers.

    function showAllLayers () {}

    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"));

    //////

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

    try {}

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

    idHd var = charIDToTypeID ("Shw");

    var desc9 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var list1 = new ActionList();

    Ref3 var = new ActionReference();

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

    List1.putReference (ref3);

    desc9.putList (idnull, list1);

    executeAction (idHd, desc9, DialogModes.NO);

    }

    catch (e) {};

    };

    };

  • I place a psd file with transparent background on another layer in my InDesign document. The b layer

    I placed a psd file with a transparent background on another layer in my InDesign document. The layer below has a color (RGB). When the psd file is placed, it changes the color on the layer below. I tried other psd files thinking that something is wrong with my file, but get the same result. I tried for days to figure this. Can someone help me?

    Edition > space of merger of transparency... and the changes to the Document RGB

  • Layer Comps in layers

    I watch a few videos of Adobe and each seems to stop just where I need to go.

    (layers in layer comps may be confusing, so I'll try to do it is as simple as possible!)

    (A)

    I have a PSD that has 20 layers composed of 20 LINKED PSDs (1920 x 1080).

    (each layer 20 make up a Storyboard for a film table)

    (B)

    I have a second PSD is 3000 x 2000

    (this is a movie theater scene that fits the psd 'A' to fill the screen, 1920 x 1080, centered at 3000 x 2000 with theatre scene).

    I want to copy / reproduce compositions of layers of 'A' to 'B '.

    PSD > "has".

    A_layercomp_01 (scene_01.psd)

    A_layercomp_02 (scene_02.psd)

    A_layercomp_03 (scene_03.psd)

    ... well now

    PSD > 'B '.

    B_layercomp_01 (A_layercomp_01)

    B_layercomp_02 (A_layercomp_02)

    B_layercomp_03 (A_layercomp_03)

    ... well now

    The psd 'A' must be updated several times.

    I would like to make changes to the "one" the psd (1920 x 1080) and they reflect in the psd 'B' (3000 x 2000) without having to export JPEG/PNG files for the theatrical stage.

    Whenever I change the drop-down list of PROPERTIES, it does not save the State.

    what Miss me?

    Thanks in advance.

    If I understand your question, then it is possible to work in this way and everything works fine. If you have a and B documents are open in Photoshop as separate files and image file has change/swap > Comp 5 using replace content command (or link back to the file) and then save the changes it will be reflected in document B immediately if this model (for example 5) is selected in the properties panel.

    I test on the latest version of Photoshop: CC 2015.0.1.

  • Replace an old file with another update

    I'm new to legacy, but I think I saw how to do this somewhere...  After importation and use of an illustrator in an animation file, I needed some items display in the file. Is there a way to import this updated file and replace the old file.

    When you replace the old file with the new only the new file keep all animations and effects applied to the previous file?

    Or this option does not even exist?

    Also does make a difference if you have imported the file as a composition vs images?


    Thank you.

    There are several ways to do this:

    1. Close AE, edit your .ai file without adding all the new layers and then reopen AE
    2. Select the .ai file in the project Panel, and then choose Edit Original in the menu
    3. Edit your file .ai with AE remains open, then select the file in the Panel of the program to the layer that you have changed and right-click and choose reload file
    4. Finally, do a completely new .ai file import as a model, then replace the layers in your comp by pressing the alt/option key and do drag the layer previously selected in the timeline panel.

    If you need more do let me know.  I'll try and answer the computer instead of my iPhone.

  • How can I select a layer on my page with just my cursor

    How can I select a layer on my page with just my cursor?

    Check Auto select layer in the Move Tool Options bar.

    When you click an item in the picture, he will choose the layer in which it appears

  • Adobe reader on my iPad can display PDF files with layers?

    Adobe Reader on my iPad can display PDF files with layers?

    Hello

    Currently, mobile products Acrobat DC (for iOS and Android) don't support any change to the visibility of the layer.  If you are not able to activate or deactivate layers in a PDF using Acrobat DC for iOS.

    You would file a feature request?

    Adobe - feature request/Bug Report Form

    Our product management team will take your request into consideration for a future release.

    Thank you.

  • Export as Photoshop file with layers (RGB)

    Hey guys,.

    I want to export my "Adobe Illustrator" file in Photoshop with RGB but file that doesn't work only with having a summarized layer.

    If you know how to export a "Adobe Photoshop" file in Adobe Illustrator file with RGB color profile and layers I had in Illustrator?

    Thanks in advance!

    (I have the German Version)

    This is what it looks like, when I go to file > export > Adobe Photoshop > RGB - I can only export the file in the format Adobe Photoshop summarized with RGB color profile.

  • Importing Photoshop files with layers in AE

    Hello

    I have a file with layers photoshop and here to import into AE as composition (no images) so that I can retain its layers. However, when I try to import the ps, it has not imported layers.  He has not even invite me with the dialog 'layer option '.  When I try to open the other ps file at random, they have worked very well. So I think it's something to do with my photoshop file.

    Any help appreciated.

    Post a screenshot of your Photoshop file and the layers panel, unless it is in CMYK color (or possibly the Lab colors). If this is the case, change the color in RGB.

    There is no reason to not have the option to import as a composition in the first dialogue, but the file will import that only a single layer and may not work at all.

  • action with the new file with the size of the selection

    Hello

    I try to record an action that takes a copy of the image and creates a new file with the same dimensions. The action record always have the size of the file of the new hardcoded image inside. I tried to put the Preset in the Clipboard, but this is not recorded in the action. It is with the CS3 version.

    How can I create a new file that takes into account the size of the image?

    Thanks for your help,

    Daniel

    You can save the menu 'Image-duplicate"to make a copy of the entire image without registration of the size. If the doc doesn't have only one layer, you can also save the context menu in the layer panel to duplicate the layer to a new document. The size is not saved.

  • Need to export files with layers automatically selected

    I have a file with a background and various text layers.

    I want to select each layer of text individually and export them to a file, but I don't want to do this manually because there is a lot of work.

    My question is, I would say how photoshop for export X number of files. Where X = the number of text boxes.

    File > scripts > export to files layers might work.

  • Flat file with several spaces

    Hello

    I try to import a flat file with hundreds of extra spaces at the end of each row, but the manufacturer warehouse import fails with:
    "Field of the data file exceeds the maximum length.

    I already clicked the mapping and specified the maximum TANK like 10 or something. the field is a number.
    preference solution should be in the generator of the warehouse and not external tables for 10g

    Thanks for your suggestions,
    metalray

    In the Editor window to walk through the tree mapping Transformation Public-> preset-> character.
    Find (under the character node) TRIM and do drag & drop it to Web mapping

    Kind regards
    Oleg

  • Word file with macros trojan

    Hello world

    I have a doubt, recently I downloaded a file attachment to an e-mail, it was a MS Word file with macros and the Internet search that I discovered that it's a Trojan horse, the question is that if I downloaded the file and the Word automatically opens the file, but the context menu Macros told me that the macros are disabled and ask me if I still wanted to open of course, I said no!, then I deleted the file. According to it, its there any possibility that the Trojan horse could not install malicious software or opening certain ports? What I have to worry about something, in the case of installed malware of this macro, restore my mac, the problem is complete?

    Thank you.

    Its there any possibility that the Trojan horse could not install malicious software or opening certain ports?

    N ° No. Zero.

    I have to worry about something,.

    Peace in the world, perhaps. Other than that, no. Do not lose sleep over this kind of thing. You have a Mac.

Maybe you are looking for