Apply adjustment to affect all layers when xport layers to files

Hi.
Have a set of sequence images opened with Bridge and placed in photoshop as individual layers. I´ve croped the image and
applyed som adjusments eg. curves etc. Now i want to save the layers as files from the file-scripts having the layer adjustments affecting
my layers before saving.
/Tedski

Well, you don’t need it anymore, but I still gave a Script that saves the pixel-layers as separate files with the Adjustment Layers flattened in a try; only for psd, though, so no format-selection.
If you want to give it a try …
// create psd-copies of  all pixel-layers with adjustment layers applied to them;
// thanks to xbytor for the regexp;
// 2010, use at your own risk;
#target photoshop
if (app.documents.length > 0) {
  var thedoc = app.activeDocument;
var docName = thedoc.name;
var basename = docName.match(/(.*)\.[^\.]+$/)[1];
// get path;
  try {var docPath = thedoc.path}
  catch (e) {var docPath = "~/Desktop"};
// duplicate;
  var myDocument = thedoc.duplicate ("thecopy", false);
  var theLayers = hideAndCollectPixelLayers(myDocument);
  var theArtLayers = new Array
  if (theLayers.length > 1) {
// show one layer and save psd;
    for (var m = 0; m < theLayers.length; m++) {
      var aLayer = theLayers[m];
      aLayer.visible = true;
      savePsd (myDocument, aLayer.name, docPath, basename);
      aLayer.visible = false;
// close duplicate;
  myDocument.close(SaveOptions.DONOTSAVECHANGES)
////// function to collect all pixel-layers and hide them //////
function hideAndCollectPixelLayers (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") {
// process pixel-layers;
      if (theLayer.kind == "LayerKind.GRADIENTFILL" || theLayer.kind == "LayerKind.LAYER3D" || theLayer.kind == "LayerKind.NORMAL" ||
      theLayer.kind == "LayerKind.PATTERNFILL" || theLayer.kind == "LayerKind.SMARTOBJECT" || theLayer.kind == "LayerKind.SOLIDFILL" ||
      theLayer.kind == "LayerKind.TEXT" || theLayer.kind == "LayerKind.VIDEO") {
        theLayer.visible = false;
        allLayers.push(theLayer)
    else {
allLayers = allLayers.concat(hideAndCollectPixelLayers(theLayer))
// this line includes the layer groups;
// allLayers.push(theLayer);
  return allLayers
////// function to save psds //////
function savePsd (myDocument, layerName, docPath, basename) {
// this clause changes the name if a file of that name exists in that location;
  while (File(docPath+'/'+basename+"_"+layerName+".psd").exists == true) {
    layerName = layerName+"_"+"1"
  var thecopy = myDocument.duplicate (thecopy, true);
psdOpts = new PhotoshopSaveOptions();
psdOpts.embedColorProfile = true;
psdOpts.alphaChannels = false;
psdOpts.layers = true;
psdOpts.spotColors = true;
thecopy.saveAs((new File(docPath+'/'+basename+"_"+layerName+".psd")),psdOpts,true);
thecopy.close(SaveOptions.DONOTSAVECHANGES)

Similar Messages

  • 3d light to affect all layers

    Hi,
    I've just recently started to use the 3d function on photoshop cs5 with text. But is there a way so the light on one layer affects other layers instead of having to redo the light for all layers?
    Thanks

    Nope. Unfortunately that 3D stuff is pretty much locked in its own world per layer. You do get the coordinates in the toolbar with the transform tools, though, so you could write them down or save them as a preset and apply them on the other layers...
    Mylenium

  • Animated Gif's - Applying Clone Stamp to all layers

    I have some animated gif's and I want to clone a
    section of all layers that compose it. I have PS2 and PS4. PS2 allows me to open and sample all layers of the GIF but wont let me apply the clone to more than one layer at a time, PS4 wont let me open anymore than the first layer. Is there a solution for this. If not is there anything in Image Ready or Fireworks that will?

    Window --> Animation, frame mode. Select all frames and while selected, do the cloning or whatever.
    Mylenium

  • PSE7 Newbie - Cropping in layers affecting all layers.

    OK,
    I am going to have several questions regarding this project, which is to select several photos in the Organizer, move them to the editor, crop and resize the photos and arrange them on a page, then add some text to create a page in a photo album.  I don't want to use the Photo Album offered by Adobe, I want to learn by doing it myself.  (Actually this is my wife's project and I am trying to show her how to do it -- and as usual, she asks me more questions than I have answers for).
    I haven't gotten any responses from my earlier post asking for advice on Moving Photos from Organizer to the Editor, and a I was hoping that someone would clue me in on what I was doing -- like whether what I was doing was right or wrong -- and maybe that would have an effect on my next question.
    Which is, when setting up layers for my photo album page, when I crop a photo on one of the layers, it reduces all of the layers to the size of the cropped image -- and I lose everything so to speak.
    Am I doing something wrong or is it not possible to crop on a layer without affecting the whole image.  Should I be handling this another way, like doing all of my cropping before I create the layer or is there some secret I haven't discovered yet.
    Ron in Round Rock

    Terri, thanks for the response.
    Yes, I do know that I can get pictures directly from the Editor.
    But no, actually my question was that I was trying to understand the Organizer / Editor interaction.  I have read that if you pass pictures to the Editor via the Organizer, they are automatically backed up or copied (somehow) -- so if you mess up in the Editor, you won't be accidentally destroying the original.  This sounded like a pretty safe thing to do.
    I am just trying to figure out how that works.  When I get to the Editor via the Organizer, the bunch of pictures I selected in the Organizer appeaqr in the Pictures from Organizer Bin.  I think I understand that -- and these are the pictures I want to use in different layers in my Editor session.
    However, all of the pictures I selected in the Organizer are also Opened as separate edit sessions in the Editor (I am still trying to figure out what these Editor sessions are called; i.e. how do I refer to them).  I am unsure if this is a good deal because it is not what I wanted to happen (at least I wish I was given an option on this).
    So if I want a 2nd photo on a layer, do I drag the photo up to the in-process Editor session from the Pictures from Organizer Bin or from the Open Files Bin.  Both seem to work, but I am sure one or the other is the more correct way to do this.  I would like to understand the differences between the two actions.

  • Adjustment Layer Affecting Certain Layers

    How can i make an adjustment layer effect only specific layers underneath it?

    Directly, you cannot.
    But you can precompose the layers and apply the effects to the precomp layer, or add the adjustment layer within the precomp.

  • Adobe acrobat 8 install affects all users who are opening PDF files

    I am trying to understand how "Installing Adobe Acrobat on Citrix server" can affect users who are opening PDF files? Users who are trying to open PDF files are having problems opening it after I installed Adobe Acrobat 8.
    I appreciate your advice.
    Citrix Xenapp 4.5
    WYSE clients accessing PDF files on our intranet
    Installed Adobe Acrobat 8

    I have not restarted the Citrix server. I installed it and executed the application and published it.
    If restarting resolves it then it is good.
    After I installed Adobe Acrobat 8 last night, this morning users who were accessing PDF files from our intranet are not able to access it I am trying to understand what kind of error that they are getting. So, far 2 users have complained that they are not able to open the PDF files.
    One user's comment was this
    I can't edit an application in Power Site Pro through Mortgagebot.  Mortgagebot tech support told me it has to do with Adobe Flash Player.
    Appreciate your reply.
    thanks
    Ifs

  • Only want to apply adjustment to one layer

    When I apply an adjustment levels layer, all layers below are affected. I only want to apply an adjustment to one layer not all of them. How do I do this?
    I am using photoshop CS4
    Thanks,
    S. Hamsun

    To amplify that, an Adjustment layer will affect all layers below it. To restrict the effect to one layer, the adjustment layer must be clipped to the layer below. This can be achieved in CS4 by clicking the icon shown above in the Adjustments panel or Alt-Clicking on the border between the two layers in the layers panel.

  • Photoshop CS6 - All Layers updating

    Hi
    I have copied the Background Layer and deselected this.  I have then made adjustments to the copied Layer and when I commit the Background Layer will change as well.   I then created a New Layer and selected only this one, but then all layers were changed.   Please can you help as to what I may have missed.  I cannot seem to find anything that will work,
    Thanking you
    Anne

    Hello,
    Are you using Adjustment Layers? (those will affect all layers below it by default)
    If you clip the Adjustment Layer (Layer>Create Clipping Mask) then it will only affect the layer immediately below.
    or
    Are you viewing at 100% (View>Actual Pixels)?
    In many cases of Adjusting, you need to view at 100% to see exactly how your image is changing.

  • How to Apply adjustment layers to multiple layers that have different blending modes ...

    How to Apply adjustment layers to multiple layers that have different blending modes  and keep the colours the same as the adjusment done?
    I work in Animation painting Backgrounds.  My files are sometimes upwards to 200+ layers.
    I will use adjustment layers to quickly balance colours and constrast on top of those many many layers.
    The only way that I know of how to apply adjustment layers it to every single layer  ( by applying I mean I need to get rid of the adjustment layers because we cant use them in production but i need the new colours be applied to all layers underneath ) in a psd is to manually do it By duplicating the adjusment layer 200+ times and  then merging each layer to one of those adjustment layers so that that layer can take the adjustment layers effect permanently.
    The issue is that Within Those 200 layers I have some layers set to Multiply or OVERLAY.    IT obviously wont apply the adjustment layer properly to those layers because those layer blend mode affect the layers under them. The colour wont be the same anymore in the spots that had the multiply blended mode.
    HEres an example of a simple File.  to show what i mean.
    https://dl.dropboxusercontent.com/u/3408266/ball%20layers.jpg
    https://dl.dropboxusercontent.com/u/3408266/ball.psd
    I have 2 adjustment layers up top.  I need to get rid of them by applying them to each layer! I cannot merge any of the layers. We need all those layers for production.
    I can apply the adjustment layers manually and this works GREAT for all Layers set to normal.  THey take on the colour change just FINE.
    However, The issue is that layer 6 and layer 4 are both set to mutiply and this screws up the colour once i apply the adjustment layers to each layer manually...
    How can i apply my adjustment layers to a file like this with some layers being set to multiply while keeping the layers exactly the same configuration  and The new colour taking efffect exactly how i looks before i apply the adjustment layers?
    Now the simple solution is to merge the multiply layers to the layer that it affects HOWEVER I NEED those multiply layers to be seperate! 
    I'm assuming what I want to do is impossible? Hope this isnt confusing.  As far as i know its impossible to do what I want it to do.  but just wanted to ask and see.
    I would REALLY REALLY love to talk to a adobe programmer/ technician/pro working at adobe about this.  Theres just no way to get in touch with anyone... =(
    any thoughts ?

    Sure... if you want to put it that way. Either way its not the desirable outcome. 
    its just frustrating that theres no way to apply adjustment layers to hundreds of layers while keeping them in the same configuration ( blendmodes,  layer order ,  without merging)  while keeping the same end result.
    works great if all your layers are set to normal though..    But I really need to keep shadow layers seperately and be able to adjust on the fly aswell as apply those adjusment to all my layers.
    I suppose that just isnt possible.   I understand the math required for this would be tremendous/ complicated if something like this would ever be implemented.  Would be nice if adobe could come up with some solution to this.  Its really a huge issue in my work flow and theres no alternatives.    How else can I adjust colours to 100+ layers  with a few clicks that lets me play around the the adjustment until im happy with the outcome.    Really wish i could adjust and the quickly apply that adjustment to all my layers regardless of blend mode.   LIke If the Layers with blendmode could somehow take the properties of the adjustment layer and keep adjusting those layers undereathe on top of that blended mode that its doing...   

  • Can you make an adjustment layer only affect specific layers?

    I'd like to use adjustment layers to affect some layers in my project, but not have them change every layer underneath.  Is there a way to make an ajudstment layer only affect a specific layer (or layers)?
    Thanks.

    To make an Adjustment Layer only affect the layer directly beneath it,  hold down
    Alt, and move the cursor between the Adjustment Layer  and the underlying layer. When the cursor changes into two overlapping  circles, click. 
    This will use the underlying layer's transparency as a mask for the  effect. In other words, it will only apply the adjustment to the  underlying layer.

  • Layer style affected on all layers

    Hello Everybody,
    I have 5 layers with similar and different layer styles applied in my psd file (PS CS5).  The problem is when I make changes to the styles on one layer, the affect is applied to all the layers simultaneuosly. Why is this happening? Is there any option to turn this off? I need to apply style changes to only a particular layer without affecting other layers. Please HELP.
    Thanks
    Shiva

    Is it the angle of the light that's changing on all the layers?  If so, then it's likely you've got the [ ] Use Global Light setting checked.  That setting is supposed to tie the light angle together on all the layers so that changes will be coordinated.
    If this is not the issue, you may want to do some screen grabs and post them here to show what you're seeing, your layers panel, and the specific layer effects you're seeing the changes in.  That will give the folks here more information with which to answer your question accurately.
    -Noel

  • Applying Adjustment Layers Only to Selected Layers

    How do I make adjustment layers 1 & 2 apply to all layer below them,
    but have adjustment layers 3 & 4 only apply to the indented layers
    below them -- layers 4, 5 & 6? That is adjustment layers 3 & 4 should
    apply to layers 5 & 6 but, not apply to the background layer.
    Adjustment layer 1
    Adjustment layer 2
    Adjustment layer 3
    Adjustment layer 4
    Image/content layer 5
    Image/content layer 6
    Background layer

    On Wed, 2 Apr 2008 20:14:48 -0700, "Andrei Doubrovski"<br /><[email protected]> wrote:<br /><br />>Jim,<br />>- Put the layers 3,4,5, and 6 into group<br />>- set the group's blending mode to "Normal"<br /><br />Andrei<br /><br />I don't know how to set the blending mode for a group, but the<br />blending mode for layers 3-6 is normal.<br /><br />When doing this the adjustment layers are still applied to the<br />background layer.  For example, if layer 3 is a color balance<br />adjustment layer this color change applies to all layers below it<br />including the background.  This is what I'm trying to prevent.

  • How to 'Select All Layers' when background is locked?

    I've just tried to Select > All Layers and was very surprised when the Background, a locked layer, was not included in the selection. Is it possible to select all layers, included the background?

    This could be a tricky one and needs some explanation. I have about 1600 images to process. I would prefer to do so from within InDesign, to which the images are linked. I want to apply Smart Filters to all the images. That's only a part of the story, but it will do for the moment.
    Method 1 and Why it Won't Work
    I could apply a Smart Filter by choosing a certain image in InDesign; selecting Edit Original and the image opens in PS. Then I was hoping to use Select All Layers and apply a Smart Filter. But... Select All Layers doesn't select all layers, and you can't apply a Smart Filter unless all layers are selected.
    Method 2 and Why it Won't Work
    I could open the images within PS by using Open as Smart Object, which DOES select all the layers and allows you to apply a Smart Filter. But for a very good reason (I can explain the reason, but it would take a few more paragraphs), I want to open the images from within InDesign. So, method 2 is unsuitable.
    Method 3 and Why it Won't Work
    I could batch all the images using an Action to unlock the Background. But, not all my 1600 images have a background. Some have ordinary unlocked layers, some have text layers. I could set up an Action to unlock Background layers (double-click, followed by a Return to name the layer "layer 0"), but if the Action came across a text layer on the bottom -- big problem. For a text layer, double-click followed by a Return  does nothing. I'd have one locked-up Action.
    Method 4 - A script working from within InDesign could open the images as Smart Objects -- but I'm not a script man.
    Seems a bit silly that Select All Layers doesn't allow me to select all layers.

  • All layers are linking together when trying to edit just one....

    I pulled in 4 pics, each to a different layer to a blank layer and board. When I placed all the images, and then tried to edit each photo with saturation, hue, curve, etc, all the pics are getting edited with the intended effect, not just 1. I have tried locking the layers, but its still linking to each one. The layer on the bottom isn't getting changed, but I don't think I should have to rotate each pic and layer to the bottom to be able to edit it. A few of my other tools are also acting up. I'm trying to do class work, and this is not getting me closer to taking my exams if the tools can't do what I need them to do. Anyone else having this problem?? Any ideas??

    Working on CS6. I tried the adjustment layer, but I was importing the graphics using file\place commands. It wouldn't work no matter what we tried. So, I used the mini bridge and dragged them into the main graphic, and then did the adj layers and it worked. Another misbehaving command is when I'm using the quick select tool, I inverse the selection, and try to delete the background to transparent. When I tried the del command, it comes up as a fill dialog box with foreground, or background colors-no transparent, and it used to work, simply using the del command. As far as I know, I think the other commands are working as they should... I guess time will tell if they are. Do you still need a screenshot the of screen for the del error? I have a windows pc with CS5 at home that I have used for 3 years, so this jump to CS6 on a mac is a little different than what I'm used to...
    Thanks for all your help.
    Jamie

  • Can I close all layers? or even better, stop illustrator from opening all layers when I open a file?

    I just installed cs6, and when I open files in Illustrator, it opens all of the layers which contain sublayers.  It does this even if all the top-level layers were closed during the previous save.  The files I work with have a large layer-structure, so re-closing the top-level layers every time I open a file wastes a lot of my time.  Can I close all layers at once, or better yet, can I stop Illustrator from opening all of the layers automatically when I load a file?
    If not, then WHY on earth not?  I can't be the only one who opens and closes large files with lots of layers and sub-layers...
    Thanks for your help.
    Edit: I also am noticing this problem is even worse in cs6, because openning and closing individual layers plays a little animation of rotating the triangular arrow before the layer which, cute as it may be, just makes the task of individually closing up all my layers that much more tedious.  Can I turn off that little animation of the triangular arrow when opening and closing layers?

    You can save it as a pdf and when you open that in AI the layers will not be opened even if they have sublayers.
    Not true. Does the same nonsense an .AI file does. Saved as a .PDF, closed Layers/subgroups get opened.
    And no one cares!
    I do. Every other Adobe program with a layering sceme seems to be able to remember that you saved a file with all layers and subs closed. But not this one.
    Maybe someone from the AI development team should ask someone from the Photoshop team how they've managed it.....for decades.

Maybe you are looking for

  • How many row data the DBObjectFiles can allow?

    i have a project that will run for 7 months long,I anticipate there will be 500,000 row userdatas ,each userdata has 6 attributes, does anyone know that the multiserver can allow this big number to store? if it can, will the number of data effect the

  • Footnotes Still Broken in Pages

    For the life of the Pages app, footnotes have never worked correctly. A long footnote that should span multiple pages is simply blocked together and moved to a page with enough space, leaving huge white spaces at the bottom of some pages. I had hoped

  • Array in formula node

    Hello everyone, I am new in labview. I would like to display the coherence function with the correct frequency scale. For instance, I want it to be as follow: FreqAxis = 0:Fs/2/(N+1):Fs/2. where Fs is the sampling frequency and N the number of sample

  • Why doesn't Timelines Editor display?

    I followed the instruction of the Classroom in a Book to open Timeline Editor. It shows under Window (the top menu bar) that it's opened but it's no where on the screen. I open other sites, still the same. Would any one please tell me if I have done

  • Kinect not working as a microphone?

    in skype my kinect wont work as a microphone... i know it picks up my voice though as voice commands are working,,, just skype wont pick it up.. any ideas how to  fix?