Creating merged output based on multiple layers.

I have a file with 4 different layer groups. One layer is a shading layer applied on top of every layer. The other 3 layers contain I'd like to be able to automate/script it so that one layer from each group can get merged into one exported tif file, ideally named by the title of each layer (ie 01Blue-02Green-03yellow.tif).
Right now I select the layers I want to use, then apply a custom action that exports it to tif. I have to rename the file after. Its very laborious, and I make now & again I make a mistake about which layers were selected.
I'm currently running CS4
Thanks!

Jess,
As my understanding of what you want:
I made a psd with the following layers (from the bottom up) background (white), blue (a layer with something blue on it - layer name "blue"), green (a layer with something green on it - layer name "green") and finally red (a layer with something red on it - layer name, you guessed it "red"). The script will then save out layers, red, blue and green as TIFFS with the layername as the filename
This script will work but it assumes a couple of things:
1, the top layer is your shading layer,
2, the background is included.
I wasn't sure if you ment "groups" as in a number of things or layersets (layer groups) so those will get exported but will be blank
// tiff export with shaded layers
// use at your own risk
// call the source document
var srcDoc = app.activeDocument;
var numOfLayers = srcDoc.layers.length;
// main loop starts here
for (var i = numOfLayers -2; i >= 1  ; i--)
    //var tempLayer = srcDoc.activeLayer.name;
    var tempLayer = srcDoc.layers[i]
    //switch other the layers off
    switchAllLayersOff(i)
      if ((i != numOfLayers -1) && (i != 0))
          srcDoc.layers[i].visible = true;
          decantLayer(tempLayer.name)
}//end loop
function switchAllLayersOff(idx)
  for (var m = numOfLayers -2; m >= 1  ; m--)
      srcDoc.layers[m].visible = false
   srcDoc.layers[0].visible = true;
   srcDoc.layers[numOfLayers -1].visible = true
   srcDoc.layers[idx].visible = true;
function decantLayer(layerName)
// =======================================================
var id21 = charIDToTypeID( "Dplc" );
var desc7 = new ActionDescriptor();
var id22 = charIDToTypeID( "null" );
var ref5 = new ActionReference();
var id23 = charIDToTypeID( "Dcmn" );
var id24 = charIDToTypeID( "Ordn" );
var id25 = charIDToTypeID( "Frst" );
ref5.putEnumerated( id23, id24, id25 );
desc7.putReference( id22, ref5 );
var id26 = charIDToTypeID( "Nm  " );
desc7.putString( id26, layerName );
executeAction( id21, desc7, DialogModes.NO );
// Set filePath and fileName to source path
filePath = srcDoc.path + '/' + app.activeDocument.name +'.tiff';
// save out the image
var tiffFile = new File(filePath);
tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.byteOrder = ByteOrder.MACOS;
tiffSaveOptions.layers = false;
tiffSaveOptions.transparency = true;
tiffSaveOptions.alphaChannels = true;
tiffSaveOptions.embedColorProfile = false;
tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
tiffSaveOptions.saveImagePyramid = false;
activeDocument.saveAs(tiffFile, tiffSaveOptions, false, Extension.LOWERCASE);
//close that document without saving
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
// selects document that's been open the longest
app.activeDocument = srcDoc;
Copy the code above into a text editor, save it out as "myexportscript.jsx" or something, put said script in the Adobe\Adobe Photoshop CS4\Presets\Scripts directory. Next time you run Photoshop you'll find the myexportscrip script on the file>scripts menu.
Hope it works for you

Similar Messages

  • Create a universe based on multiple existing universes

    I have a BI 4 SP02 installed in Windows OS. I am using Information design tool to create data foundation to connect to multiple data sources. Instead of using multiple database connection, can I create a data foundation to connect to multiple universes. My intention is not to create new universe based on multiple databases. Instead, I want to combine two existing universes as one and create report from that. Is it possible to do? if so, may I know how to do that?
    Thank you

    Hi
    If you want to combine two universes and make a report of it, it is possible by universe linking concept.
    If you have two universes for example, then these two universes have to be linked by using any of these two methods.
    1. Add link
    2. Include link
    Add Link : Complete reusing of an existing universe in the current universe.
    Steps
    1. File > parameters > link tab> Add link> browse for the universe> open > ok.
    Then make the join between the common object.
    Save and export.
    Include link: Partially reusing of the existing in the current universe with few modifications.
    Steps
    1.File > parameters > link tab> Include link> browse for the universe> open > ok.
    Hope it helps.

  • Creating data output based on changes to fields

    Hi
    I am using SQL Server 2008 R2 BIDS and need to produce a weekly report whos output only shows changes from the previous weeks report and not sure if this can be done or where to start so any help very much appreciated.
    The scenario is this.
    I have a table where data is uploaded automatically (date created) and there are three main fields that can change. There are over two thousand rows added at each upload.
    Column1 will be the date created
    Column 2 will be a monetary value
    Column 3 will be a reference number
    In the example above with one reference number the first three rows there is no Amount change so each time the report is run this would not be included in the output. In Row 4 there is an amount change so this row should be included in the report output.Row
    5 changes again so the next time the report runs this should show in report output. There is no change to Amount in Row 6 or 7 so these should not show in the next report output.
    If the report was run on 20/03/2015 then there would be no output as no previous changes
    Similarly if the next report was run on 10/04/2015 then it should show the changes on 26/03/2015 and 09/04/2015.
    There could be NULL value in the Amount column and again if at some stage an Amount was uploaded then this would show a change and should be included in the next time the report run.
    Any changes to data from automatic upload then need to manually adjusted and to save a user comparing thousand of rows i was hoping that by creating a report to only highlight changes would be a great time saver.
    I hope i have explained this okay and any thoughts or assitance would be great
    Thanks
    John

    Hi
    I have put the query into SQL Server Management studio to test using the table field names but it doesnt seem to giving me the expected output. This returned over 111392 rows. I have filtered this to just show the reuslts for tency_seq_no 200002 which
    returns 57 rows.
    DECLARE @InputDate Date = '2015-04-09'
    ;WITH cte AS
    SELECT *,ROW_NUMBER() OVER(ORDER BY trans_date)
    -ROW_NUMBER() OVER(PARTITION BY grs_val_trans ORDER BY trans_date) rn
    FROM hratrans
    SELECT MIN(trans_date)as DateCreated, grs_val_trans, tency_seq_no, rn FROM cte
    WHERE rn <> 0 and trans_date < @InputDate and con_sou_cd = 'HB' and tency_seq_no = '200002'
    GROUP BY RN,grs_val_trans,tency_seq_no
    This is in fact showing all weekly transactions over the past year for this particular tency_seq_no.
    However i only want the report to show any changes since the last time the report was run. So in the image shown below for tency_seq_no 200002 if i select 09/04/2015 as the input date i would want two rows in the output showing -62.11 both on the 09/04/2015
    as this was a change from the previous -61.11 recorded on 26/03/2015.
    The image below just shows part of the table hratrans
    Likewise if i had used an input date of 12/03/2015 at -60.71 then there would be no output for this as the previous date of 05/03/2015 was also -60.71.
    Thanks
    John

  • Creating smart album based on multiple albums

    Hi,
    I would like to create a smart album based on the ratings of the photo and based on more than 1 album. Is this possible? because when i do try to base the condition on more than 1 album, no photos in my smart album show up.
    Thank you.

    crouton800:
    Welcome to the Apple Discussions. No, that won't work A smart album can only search one album to display a specific rating photo in that album. That is, the criteria would be Album is A and rating is 5 star with the "all" selected.
    That's because the All or Any criteria prevent you from trying to find only the 5 star photos in Album A and B. If you use the "all" criteria you'll get no hits and if you use the "any" criteria you'll get all of the photos in both A and B.
    Also you can't have a smart folder, only a smart album.
    What you need is for the following criteria to be invoked:
    Album is A and rating is 5
    and
    Album is B and rating is 5
    and that can't be done with the present application.
    You can get around this limitation by assigning a unique keyword to every photo in Album A, B and future albums in that folder. Then do a a smart album with the criteria:
    Keyword is "xxxx"
    Rating is 5 star
    and have the "All" selected.
    G4 DP-1G, 1.5G RAM, 22 Display, 2-80G HD, QT 7.0.3P   Mac OS X (10.4.3)   Canon S400, i850 & LIDE 50, Epson R200, 2G Nano

  • I want to make a new layer of multiple items on multiple layers...

    Hello,
    This is probably easy, but I can't figure it out.
    I have a multi layered document and I don't want to flatten things to do this.
    Sure I can go the long route, but there has gotta be a better way that I just
    do not know about.
    I have drawn a selection with the marquee tool. But the items this selection includes are all on separate
    layers.
    Without merging them, how can I make a new layer out of this selection?
    I'm on CS4
    Thanks
    Nikki

    Stamp multiple layers or linked layers
    When you stamp multiple selected layers or linked layers, Photoshop creates a new layer containing the merged content.
    Select multiple layers.
    Press Ctrl+Alt+E (Windows) or Command+Option+E (Mac OS).
    Stamp all visible layers
    Turn visibility on for the layers you want to merge.
    Do one of the following:
    Press Shift+Ctrl+Alt+E (Windows) or Shift+Command+Option+E (Mac OS).
    Hold down Alt (Windows) or Option (Mac OS), and choose Layer > Merge Visible.
    Photoshop creates a new layer containing the merged content.

  • F110 issue with multiple users - unable to create DME output

    Hi
    I have an issue, when i have multiple users executing F110 using the payment programs for DME output. program SAPPAYM that when a user tries to create DME output, that nothing is created.
    it is as if the first person who creates a payment proposal then blocks the subsequent users from creating output.
    we have found that the only way around this issue is to get one user executing a payment run at a time.
    Only by getting all the other suers off the system and deleting any payment proposals can we produce the output.
    any ideas??
    Liz

    Hi
    I have an issue, when i have multiple users executing F110 using the payment programs for DME output. program SAPPAYM that when a user tries to create DME output, that nothing is created.
    it is as if the first person who creates a payment proposal then blocks the subsequent users from creating output.
    we have found that the only way around this issue is to get one user executing a payment run at a time.
    Only by getting all the other suers off the system and deleting any payment proposals can we produce the output.
    any ideas??
    Liz

  • How do I automate merging of multiple layers by name?

    I have to combine over a 800 files each with sixty layers to create a final document with 60 layers (for an animation). All the 60 layers in each file are named 01, 02, 03 up to 59, 60. Iam using Photoshop CS6 and at present I am merging by using the find/name function, then highlighting all the layers selected and then using 'merge layers'. Is there a quick comand/action to merge all layers with the same names, ie all 01s, all 02s etc without having to merge each set of layers separately.
    Any advise gratefully received.

    I may have misunderstood the op.
    So you need to merge the 60 corresponding Layers from 800 different files?
    Could you post a screenshot with the Layers Panel visible? (with the camera icon)

  • Merge multiple layers

    is it possible to select multiple layers (with layermask) and merge them?
    tell application "Adobe Photoshop CS6"
        tell current document
            set current layer to every layer of layer set "bloem 1-9" of layer set "Bloem"
            tell current layer
                merge
            end tell
        end tell
    end tell

    c.pfaffenbichler,
    You are right, this is the wrong place to ask.
    thanks.

  • Creating an Action to turn off multiple layers

    I am using CS4 and I was wondering if it's possible to create an action to turn off multiple layers. We have to save a version of our files with only one layer showing, and to manually turn of the unwanted layers is getting to be a pain. Thanks for the help!

    Ok, here goes. An example would be a template for a spatula that’s available in 5 different colors. Each color has a different layer (named for its respective color). Then there may be a flashlight that only has 2 layers (for its respective colors). Each product would then have a “foreground” layer & an “imprint” layer. These layers have the same names on every product. I need to keep the imprint layer turned on, but turn off every other layer.
    Sorry if I’ve completely confused you! J
    Michelle Lovell
    Graphic Designer
    Bay State Specialty Company
    101 Charles Eldridge Drive
    Lakeville,Ma. 02347

  • Selecting multiple layers and merge

    is it possible to select multiple layers (with layermask) and merge them?
    tell application "Adobe Photoshop CS6"
        tell current document
            set current layer to every layer of layer set "bloem 1-9" of layer set "Bloem"
            tell current layer
                merge
            end tell
        end tell
    end tell

    Yes, for that you have to select the layers that are in the set. Here is one way using javascript
    function selectLayerBelow( add ){
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Bckw" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        if(add!=undefined && add = true )desc.putEnumerated( stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelectionContinuous') );
        desc.putBoolean( charIDToTypeID( "MkVs" ), false );
        executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
    // assumes a layerSet the the activeLayer and doesn't work correctly if there are nested layerSets
    var numberOfLayersInSet = app.activeDocument.activeLayer.layers.length;
    selectLayerBelow();
    for(var layerIndex = 1;layerIndex<numberOfLayersInSet;layerIndex++){
        selectLayerBelow( true );
    app.activeDocument.activeLayer.merge();

  • How do I create holes through multiple layers?

    I'd like to use boxes to punch holes into the layered artwork below them. I want the result to look exactly like this image, but with the white boxes being transparent holes.
    This seems so simple, but I can't find any combination of layers/pathfinder tools/compound shapes/or clipping masks that will produce this result. No matter what, I end up losing part of the artwork (usually the topo lines and the black bar).
    What am I missing??
    Thanks in advance for any advice.

    mirvlem,
    You may:
    1) Select the boxes to become holes and Object>Group (if nort already);
    2) Select everything and in the Transparence palette flyout tick Make Opacity Mask with Clip unticked and Invert mask ticked.
    There seems to be no need for multiple layers, but the Opacity mask punches through them all right.

  • Photoshop Elements select tool, when targeting layer or multiple layers the layer properties box pops up.  Having to very carefully and repeatedly select and highlight layers to move, or merge when using Move Tool.  Win 8, Adobe 12, Intuos 4 w/ updated dr

    This issue has been going on for several weeks.
    The Move Tool is not functioning properly when selecting and TARGETING a layer or multiple layers, as the Layer Properties box pops up requiring me to close it and try again.
    How to reset or is there an update and fix for this issue.
    Using Win 8, Elements 12, and Intuos 4 Pen and Tablet.

    To reset the tool I suggest click on it once and then look for something like this in the bottom half of your window:
    In the above picture I have marked one section in red box.  You need to click on it to get the option to either reset the only tool you have clicked or to reset all the tools in the editor window.  Of course you have to be in Expert Mode to get this to work.
    Good luck.

  • MULTIPLE place image import...& "save as.." multiple layers to multipage PDF

    Hello,
    just some suggestions I`d like to see to speed up my set up and output..
    i`d like to import multiple placed images into illustrator CS4. So open dialogue box place, and multiple select images for placing.
    regards output save as...
    Can we output multiple layers  into a single PDF in illustrator?  Or multiple layers into single JPEGS  from illustrator with one command instead of individually saving out  each layer... would be a huge time saver for me.I create different artworks on different layers..
    Currently  I output each completed layer individually and then right click those  outputted jpegs in their output folder and choose "combine supported  files into acrobat..." to make a single acrobat file..i`d like to do this right in the illustrator "save for PDF" dialogue box. Adding  something in the Save for PDF output dialogue box to save layers to one PDF as multiple pages would be a helpful time saver..
    I`d  also like to be able to CTRL click multiple layers and go " save as..."  only those layers get saved out... 

    , bridge -FILE/PLACE into ai, goes to separate layers in AI as placed.
    in PS, bridge/tools/ps/load files into ps layers.. CS4.
    just using right click in explorer on individual PDF docs from layers saved from PS to combine to PDF. but cannot output multiple pds from layers in AI in CS4.

  • How to create dynamic tree based on BAPI

    Hi
    I am able to create dynamic tree based on flat file structure example given in SDN . But how to create the tree from BAPI directly.Also when I will be clicking on any leaf node of the tree some data related to the node will be passed to another view.
    Regards
    Ananda

    What i'm trying to do is create an organizational structure.
    Global>Region>Plant-->Corporation
    The output from the RFC is a structure containing every possible combination for orgazational hierarchy. Basically a flat table with record for every possible combinaton of Region-Plant-Corporation. This data needs to be bound to a tree structure so that we can call BW queries based on that level. For example: Give me aged inventory for the SAP corporation within the plant Berlin that is located in the Europe region.
    Now that you understand the business reason will the nodes that represent Region and Plant and corporation be non-singleton nodes or recursive? I was thinking a hierarchy of non-singleton nodes.
    I can bind these nodes to the Region - Plant - Corporation elements returned from in the flat table structure. I will probably get duplicates as a specific Region will be listed multiple times for every possible combination of the data beneath it. I'm not so concerned about that right now as I want to make sure I understand how in Web Dynpro to bind the data to the tree.
    Hopefully this makes some sense. Can you elaborate on how this may be constructed in context of the view?
    Would i create a model node for region (0..n), model node for plant (0..n), and a model node for Corporation (0..n)?
    Or does this sound totally incorrect?
    julian
    We have 3 regions over 50 plants and probably around 500 corporations.

  • Multiple selections to multiple layers or multiple files with one go ?

    Hi,
    how to convert multiple selections to multiple layers or multiple files with one go ?
    Thanks!

    You may want to ask over at
    http://forums.adobe.com/community/photoshop/photoshop_scripting?view=discussions
    or
    http://ps-scripts.com/bb/
    I think there are Scripts about for the task or at least ones that could be adapted without too much problems.
    The usual approach is, I think, creating a Work Path from a Selection and then using (expanded) Selections based on the individual subPathItems to intersect with the original selection.
    Of course there are possibilities for bad results …

Maybe you are looking for

  • Can't set up another email for iMessage! Please help!

    *Yes. I will repost this discusion if it is sent to the second page with no reply. I already have two iPhones and an iPod touch, and a Mac set up on my iTunes account. The iPod and Mac each have their own gmail account they use to recieve iMessages (

  • What are the announcements for renting VPS?

    What are the announcements for renting VPS? For details, understand VPS and make the choice of rental; for Taiwan VPS and Hong Kong VPS, without records, unlimited contents, wider range, and more efficient experience. Your server will show its excell

  • Actions in CS5.1

    Heya, I'm trying to edit an action. I'm trying to change how I move something. I'm using a mac, I've tried clicking on the specific item in the action and hitting record; NO JOY. I've tried selecting 'record again', but NO JOY. When I click on 'recor

  • OPatch failed with error code=74check "CheckSystemSpace" failed on 11.1.0.7

    Hi , I am trying to install CPU patch on oracle 11.1.0.7 on windows 32 OS , Stopped listner, and stopped services and on applying - opatch apply I get the following error...i currently have 1.25 GB on Oracle_home Drive which is E drive. How much spac

  • Assign search help to tcode F-47 (field purchasing doc)

    Hi All, I've created an Elementary search helps  via SE11. Now I want to link the search help I've created with transaction down payment request screen F-47 , in the field purchasing document. Expected result, when I drill down  in the purchasing doc