Import subfolders in layers...

I need a script that will import all of the subfolders in the form of layers, either as an individual PSD file for each subfolder or a single file (the first option is preferable).

I use this script to date (found here: subfolder images in piles layer, then sprite batch. )

Select folder, create files with the content of one of the subfolders in the form of layers and save them in the folder;

  • Use it at your own risk;
  • #target photoshop
  • Select a folder;
  • var sourceFolder = Folder.selectDialog ("Select folder");
  • If {(sourceFolder)
  • psd options;
  • psdOpts = new PhotoshopSaveOptions();
  • psdOpts.embedColorProfile = true;
  • psdOpts.alphaChannels = false;
  • psdOpts.layers = true;
  • psdOpts.spotColors = true;
  • get the content in the form of a table for each file;
  • var elements = retrieveFiles (sourceFolder, [[]]);
  • Browse;
  • for (var m = 1; m < items.length; m ++) {}
  • var thisArray = items [m];
  • var thisArray = folderName [0].parent.name;
  • Open the file;
  • Picture var = app.open (File(thisArray[0]));
  • for (var n = 1; n < thisArray.length; n ++) {}
  • Place the rest of the table;
  • var theLayer is placeScaleFile (thisArray [n], 0, 0, 100);.
  • };
  • Save the file stacked;
  • theImage.saveAs (new File(sourceFolder+"/"+folderName+".psd"), psdOpts, false);
  • close;
  • theImage.close (SaveOptions.DONOTSAVECHANGES);
  • };
  • };
  • Get subfolders.
  • function retrieveFiles (Folder, uses) {}
  • If (! uses) {var uses = [[]];}
  • var content = theFolder.getFiles ();
  • for (var n = 0; n < theContent.length; n ++) {}
  • Pourla var = content [n];
  • If (theObject.constructor.name == "Folder") {}
  • theFiles.push (new Array)
  • retrieveFiles (pourla, uses)
  • };
  • If (theObject.name.match (new RegExp (/ \.))) (JPE). jpg | JPEG | gif | PNG | TIF | TIFF | BMP | PSD | DNG | PICT | EPS | gross | rw2 | CRW | CR2) / i))
! = null) {}
  • theFiles [theFiles.length - 1] .push (theObject)
  • }
  • };
  • return of uses
  • };
  • get files PSD, TIF and jpg files.
  • function getFiles (dittos) {}
  • If (theFile.name.match (/ \.)) (EPS). AI | jpg | TIF | PSD | PDF |) $/i)) {
  • Returns true
  • };
  • };
  • place.
  • function placeScaleFile (file, x_offset, decalage_y, theScale) {}
  • // =======================================================
  • var idPlc = charIDToTypeID ("Plc");
  • var desc5 = new ActionDescriptor();
  • var idnull = charIDToTypeID ("null");
  • Desc5.putPath (idnull, new (file));
  • var idFTcs = charIDToTypeID ("CIE");
  • var idQCSt = charIDToTypeID ("QCSt");
  • var idQcsa = charIDToTypeID ("Qcsa");
  • Desc5.putEnumerated (idFTcs, idQCSt, idQcsa);
  • var idOfst = charIDToTypeID ("Ofst");
  • var desc6 = new ActionDescriptor();
  • var idHrzn = charIDToTypeID ("Hrzn");
  • var idPxl = charIDToTypeID ("#Pxl");
  • desc6.putUnitDouble (idHrzn, idPxl, x_offset);
  • var idVrtc = charIDToTypeID ("Vrtc");
  • var idPxl = charIDToTypeID ("#Pxl");
  • desc6.putUnitDouble (idVrtc, idPxl, decalage_y);
  • var idOfst = charIDToTypeID ("Ofst");
  • Desc5.putObject (idOfst, idOfst, desc6);
  • var idWdth = charIDToTypeID ("Wdth");
  • var idPrc = charIDToTypeID ("#Prc");
  • Desc5.putUnitDouble (idWdth, idPrc, theScale);
  • var idHght = charIDToTypeID ("Hght");
  • var idPrc = charIDToTypeID ("#Prc");
  • Desc5.putUnitDouble (idHght, idPrc, theScale);
  • var idLnkd = charIDToTypeID ("Lnkd");
  • Desc5.putBoolean (idLnkd, true);
  • executeAction (idPlc, desc5, DialogModes.NO);
  • Return app.activeDocument.activeLayer;
  • };
  • It is almost perfect for my needs, but would be better if the images have been imported in the form of standard layers and not dynamic objects.

    The layers must be placed in the form of normal layers.

    Tags: Photoshop

    Similar Questions

    • How to import Photoshop video layers in Flash?

      I use the timeline Photoshop function to draw and animate images. But I also want to import these video layers into Flash for further editing.

      I already know you can import an ordinary psd in flash and have transferred all the separate layers. But when I try to import a psd file that has video layers; all layers appear empty.

      Ideally, I would like to create an animation frame by frame in Photoshop and then be able to import them into Flash for editing. Any help?

      You can always keep your individual designs on separate layers in P'shop. Use a script in P'shop to export layers of images. Import these images as a sequence into Flash. Flash will import to keyframes in the Flash timeline.

    • PSE11 import subfolders

      Well, I feel stupid.

      I'm watching a tutorial that explains how to import images of file folders.

      I have 3 folders, folder 1 folder 3.   Folder 3 has 3 subfolders and say 3 to 6 subfolders subfolder.

      I have already imported files 1 and 3 successfully without importing subfolders.  Now, I want to import subfolder 3 3 folder (which has 6 subfolders) but not the subfolders 1 and 2.

      I see it is that if I select the main folder 'Get files from subfolders' is active and can be checked or not checked as I want.  Now when I select the subfolder 3 (which has 6 subfolders) 'get the folders and subfolders' is gray and the 'Get media' button is grayed.  In other words, there is no way to import all folders subfolder 3 unless I go back to the parent directory and some subfolders or I spend the 6 different subfolders in subfolder 3.

      So I imported all the photos of one of the individual folders, now I can't import another file.  Why can't import the subfolder and all of its subfolders?  I continue to read the tutorial and it seems that I should be able to do this?

      Any ideas what I could do wrong?

      Also, I know that without a photo it is not clear what I'm trying to do, I hope I did the problem correctly.

      Try using the Panel on the left in the Organizer. Click on the two yellow pins to expand the tree. Then, try right clicking on the individual folders & subfolders options.

    • I imported an EPS layered file in FrameMaker, but ONLY the EPS image appears in the PDF file. How to do everything to appear?

      I imported a file .eps (a barcode) in FrameMaker and found that the omitted PDF everyting but the .eps image.  How can I get FrameMaker to recognize the text and images in the file FM, as well as the image of layered .eps file in the output PDF file? To test this, I also converted the .eps file (in PhotoShop) for a TIFF, JPG and GIF, PSD and imported of each in the doc of FrameMaker and created a PDF file.

      When I imported the FM and PDFd .psd file, all of the text and images of the file FM appeared, but the bar code has low resolution.

      When I imported the TIFF records in FM and PDFd, nothing appears in the PDF file except the barcode image and the text block, to which it is linked. The bar code has low resolution.

      With a JPG image, everything appears in the PDF but the barcode has low resolution.

      With a GIF image, it appears in the PDF, but t barcode a low-resolution.

      First thing you should try is to create a PDF file of the EPS file using Acrobat only. If it does not come out as expected (in the PDF file), then you know exactly where the problem is. Create a PDF file of the EPS in Photoshop is not a good test.

      You also need to update your version of FM12 - you have a patch behind.

    • How to import subfolders in LR 4?

      Hello

      meeting of products I've already organized pictures of different subfolders on my HD (via EOS utility). Now, I want to import these files into LR4, but even if I ticked the box "include subfolder" I get only a file import. Because I can't find anything in the help files on a new way to do this, I wonder if it is always taken care...

      any help is very appreciated!

      Thank you

      Martin

      MAC Pro

      LR 4.1

      because I saved all the images on an external hard drive during the filming, I need to move / copy in LR. But meanwhile, I found this: it's him dialogue "organize" in which aone has choose the option 'original folders. But thanks anyway for your quick response.

    • Photoshop cc-import images to layers feature let me only import grayscale

      Product: Adobe Photoshop CC

      OS: Windows 7

      He only started recently. It was working fine before. I can't import videos COLORS in color, it let me only import levels of gray, or at the very least, when the range to import a clip is grayscale and when I click ok it is all in shades of gray.

      I'm making of gifs.

      I change all the settings, I know.

      I tried to make a new image to RGB. It will allow me to color of things. I disabled the color settings for the properties of color management. I'm out of ideas.

      I do not immediately suggest the bat, but I think that this would need a reset preference.  It's such a pain to return everything as you like it after resetting preferences, so I'm sorry if you try it and it doesn't help.

      You can try to reset all the tools first (far left of the Options bar), but I don't think that will fix it.

    • How to remove imported layers to ultiboard layers General property

      I imported several. DXF layers in a project some time ago and now they always appear in the default configuration of each new project. I tried in vain to deselect them and the value by default, but they always appear again. How can I remove them when there is no possibility to do so in the properties page?

      Thanks, Tod

      Hi Tod,

      I think what happened is that you have imported DXF layered into a project, then saved the PCB properties as default values, who then saved DXF imported as default layers. To remove these layers, you must remove your config file, which is where the default settings are saved. This will also reset your user interface and all of the default settings, you have already stored.

      Just follow the instructions here: http://digital.ni.com/public.nsf/allkb/2719D00E36A4D53A8625721300685B3F

      I also created a defect (D116800) because it should be possible to remove these layers custom without resetting your configuration.

    • Extend the 'footage' imported PSD layers

      I imported a layered Photoshop file into After Effects as a model in layers with several layers of "footage".psd:

      Screen Shot 2016-06-27 at 1.23.33 PM.png

      I have created and edited the comps in the 20 main comp with animations and effects. Now, I need to extend the .psd layers (all 7 s ~) to the length of the main comp(20s).

      I tried dragging to extend their regions and right click > time > enable time Remapping(this allows me to extend the region with keyframes, but the content still ends proportionally short of the containing comp duration).

      When I right click on the layer of .psd and click on 'Open Source layer', the preview displays the duration of the layer extending at once as it shows in the timeline(~7s)...

      icZAR.png

      but green "render bar" only goes to 5s. And no content is visible while the playhead is at 6s, below...

      sWEMD.png

      This is also when I drag the playhead in the timeline main comp - layers with this problem disappear to 5s, even if their areas extend to 7s.

      1. I need to get these parts of layer to increase the length of my 20 years comp.

      2 it seems that the source of the layer is 5 s when I "Open Source layer", then even if the region is currently being extended to 7 s ~, 'content' only goes to 5s.

      How can I extend it to 20 seconds without doing all my images keys/animations/effects all over again?

      Or is there a way to re - import only the layers to lasting longer, but keep all my keys/animations/effects images.

      Using the latest Photoshop CC 2015.5 v2015.3 & after effects CC.

      Thank you!

      Sure sskaz is on, check if there is a timeline attached to your psd in Photoshop and delete it:

      You can also freeze your layers in After Effects and make more time

    • include subfolders when importing

      Is there a way to tell LR to import subfolders when you select a folder (I can do this, but I have to manually select the folders)

      I would like this to be automatic so that I can just click on the button to import an existing catalog and get updates of added files. I already have more than 4,000 pictures in folders, and I don't want to go and find all the things I've added since the last import.

      In the upper-left corner of the import dialog by clicking on the icon of the source should present you with a few options.

    • Why prelude doesn't respect my folder structure while importing files: no subfolders imported

      I have a large number of video files in the folders and subfolders. But when I try to import them into Adobe prelude CC 2015.1, none of my imported subfolders. Instead, it's a complete mess with all the files into a single folder. Organizing my folder structure as I wanted in the operating system, now I have to do any second once in prelude. Surely this can not be the only way. I don't understand because I read on CreativeCow.net that this problem had been resolved in 2013 and you now want to import folders with subfolders in prelude, prelude respect the operating system of the imported files folder hierarchy: https://forums.CreativeCOW.NET/thread/3/943781

      But I am not able to get this working:

      It's my folder structure for a documentary of the first World War:

      Screen Shot 2016-01-27 at 9.51.37 PM.png

      Here, I checked everything (files and subfolders) in the folder of the WWI allies, I want to import.

      Screen Shot 2016-01-27 at 9.52.01 PM.png

      But prelude instead goes and backup all the files in the top level, forcing me to have to recreate all subfolders:

      Screen Shot 2016-01-27 at 9.52.15 PM.png

      Hi ninose11,

      Unfortunately, prelude does not support directly import them folders or subfolders. It will be important only the media inside the selected files.

      However, you can create bins in the lead on the project, according to your folder structure Panel and import the required media directly in these bins.

      This workflow is available in Premiere Pro where you can import the structure of file directly.

      Customer feedback is important to us. Please fill out the feature requests for the things you want to see as a prelude to the http://www.adobe.com/go/wish.

      Thank you

      Mayjain

    • Imported into After Effects layers appear too dark compared to the Illustrator layers

      I designed a website in illustrator and imported the aftereffects layers to animate, but the colors are much darker. Images, Composition and size of the maintaining layer give the same results.

      Here are some screenshots:

      The first is the design in illustrator

      http://i.imgur.com/qX6S7XY.PNG

      The second is a screenshot after importation in AfterEffects

      http://i.imgur.com/wXXTFOs.PNG

      The blue and the image are extremely dark in comparison. I've never had this problem before, any help will be appreciated.

      As says Mylenium, albeit rather abruptly, CMYK is not a good workspace for the web or video. Work in CMYK mode for printing, if you must, but not for what it is intended for the screen.

    • How to import all layers in Photoshop at once?

      Hello

      I'm trying to import a Photoshop psd file into AE. This file has a lot of layers. When I file > import > file, he asks me if I want to import images or layers.

      When I selected layers, I wonder which layers I want to import into. It's a lot of time as I import one layer at a time. How can I import all the layers in a single shot?

      Thank you

      See you soon

      Choose import as a composition. Check the help files. There are two options.

    • Import from a file I JUST a layer?

      I imported a file WITH layers - for animation. I know I forgot something and it adds a new layer in .ai file. Is there a way to simply import the new layer & not re-import all the layers again?

      Also - is there a way to import the layer name - just - naming convention? Currently, AE is adding layers with the name of the file you added at the end and it slows down the workflow for me that the name is long that it takes more time to understand what layer I enter. Thank you very much!

      1. If you want to import a single layer, you select "Footage" and select the layer and choose if you want it to be the size of the layer or document size

      2 Ae has two names in the name column. the name of the layer and the name of the Source, and you can work with each of them

      name of the source

      Click on the name of the Source and you get the name of the layer

      If you change the name of the layer in the timeline you affect the layer name. If edit you in the project window - you set the name of the source. You'll get the hang of it

    • No photos in imported files

      I imported just 11 files in the organizer of 12 elements.  After each file has been imported, I could see the pictures in the media pane.  After all the downloads, I went to check individual records to determine if the download succeeded.  By clicking on each file, no image appears in the window media?

      kylef63747144 wrote:

      I imported just 11 files in the organizer of 12 elements.  After each file has been imported, I could see the pictures in the media pane.  After all the downloads, I went to check individual records to determine if the download succeeded.  By clicking on each file, no image appears in the window media?

      When you are in the folder in the left panel tree, which is the look of the icon of the little folder of each of those newly imported subfolders? If they are empty, there is no file photo, if they have a drawing, they have files. It is possible that you have a filter, so don't forget that 'All media' are displayed in the title bar of the navigation area. If there is a 'all media' with a left triangle pointing to the left of the title bar, click it to see all media. Note that if a file has no image file but has subfolders using files, you may need to right-click on the icon for the master file and choose the last option, "show all subfolders".

    • The update of the .psd files imported in first Pro CC 2015 does not correctly...

      Hello

      I get to importer my Photoshop layers in first, but when I change them, the update does not automatically as before, not at all see!

      Thank you for your help :-)

      I saw it on occasion.

      I use replace the images with the same file.

    Maybe you are looking for

    • I can not open a new tab that's past?

      In the last days, when I try to open a new tab, nothing happens!

    • X 61 failure after cleaning the fan

      I just bought a X 61 on ebay and installed Linux Mint, VirtualBox and Win8.1 Preview. Everything was fine, except that the heat was worried. The fan was going on, but no air seemed to go out, so I followed the service manual and dismantled the entire

    • How to create a shortcut on the desktop?

      desktop shortcut where can I get the shortcut on the desktop

    • Impossible problem of keyboard shortcuts?

      I don't know yet how this is possible, but my 22 month got ahold of my laptop and now the 'Enter' key opens the "Options-> change Plan power settings.  This key does not even work as a keyboard shortcut, right?  What she did do, and how to cancel it?

    • 8 windows to transfer to another computer?

      I bought and upgraded to windows 8 pro and Media player recently on my laptop. But now I'm selling my laptop and want to know what I can go install windows media player on my desktop and 8 and remove it from my laptop?