Add layers from other psd file and retain text layers (Batch processing)

I want to batch process a large number of portraits adding text info from the filename (year_name_number.jpg) to existing text layers. I want to make a template psd file containg the correct labeled text layers formatted and adjusted (With bleding effects and more) How can i add layers from an other psd file to the active document and retaining the text layers editable. The place command in PS5 adds the file as a smart object, no use.
Any ideas?
I tried the combined action/script way, but no joy so far. Right now i am making the text layers with a action, then calling the script from the action. It works but its difficult to make different templates from adjusting a action.
The code i am using now (in combination with a action creating the 3 text layers and other grapchical elements)
var docRef = activeDocument;
// strip the extension off
var fileNameNoExtension = docRef.name;
fileNameNoExtension = fileNameNoExtension.split( "_" );
if ( fileNameNoExtension.length > 1 ) {
                fileNameNoExtension.length--;
fileNameNoExtension = fileNameNoExtension.join("_");
var myString = fileNameNoExtension;
var mySplitResult = myString.split("_");
var textLayer = docReflayers['Year']; // define the existing text layer to a var
docRef.activeLayer = textLayer;
textLayer.kind = LayerKind.TEXT;
var T1 = textLayer.textItem;
T1.contents = mySplitResult[0]
var textLayer = docRef.layers['Name']; // define the existing text layer to a var
docRef.activeLayer = textLayer;
textLayer.kind = LayerKind.TEXT;
var T2 = textLayer.textItem;
T2.contents = mySplitResult[1]
var textLayer = docRef.layers['Number']; // define the existing text layer to a var
docRef.activeLayer = textLayer;
textLayer.kind = LayerKind.TEXT;
var T3 = textLayer.textItem;
T3.contents = mySplitResult[2]
Thanks
Eivind

norway_photo wrote:
Here is my intended workflow:
- A set of same size portraits labeled "year_name_number.jpg"
- A template.psd os same size with graphical elements and text layers (named "year", "name" and "number")
- A script or action copy/pasting og adding all layers from the template.psd file to the open portrait file, retaining text layers editable.
- A script (The one i have working) changing the text layers added from the template to text from the filename.
- A action saving this as a PDF ready for print.
This way i can process a large number of portraits, add names and other information and save it as a file ready for print.
I can image it is much easier to edit a template than writing a script or an action creating all the graphical elements.
And even better, to change this template for different customers/departments/logos.
Basically i need a way to add layers to an open file using a batch file or script.
Eivind
OK I understand what your trying to do and now I do not agree with your conclusion you made in you first append about place being no good for you.  Its is I think a perfect solution for you. I feel you need to address the process from a new angle.
I am very familiar with templates I use them all the time for collages which I populate with an actions.  However I do not batch this process and my process is interactive.  If you look at what your trying to do from the angle of creating a collage.  You will see what you are trying to do is automate the population of a single image collage using a single template in a batch process.  An example of one of my single image collage populated by one of my actions that has been saved as a jpeg image file.  My actions are played in Photoshop with no document opened.  After my action is play there is a single collage document in Photoshop that contains layers that can be tweaked all text is in text layers the can be edited.
If I wanted to automate the batch population of a single collage template I think all I would need to know is three thing.
1.) The location of the input images
2.) The full Path of the PSD template file.
3.) The location to store the output  file
Looking at some of the recent threads in this forum I could almost cut and past the script you want to put  together.  There was a recent thread that had javascript code to process files in a folder and process only a list of file types.   There also was a thread that had a place function in it to place images into the current document or create a new document to place the image into.  The image was read from the web using a URL.  This thread has code to change a text layer.  At first I though you may need to open these image file to get at its meta-data to get the Portrait image Exif creation data.  But see all you need is the Filename for it has the data you want the year and name.  So the function that get the image files from the folder will give you that. The   Script needs to Open the Template PSD file and retrieve the prototype text layers text content  then the scrip needs a loop that get the next image file to be processed from the folder get filename function. In the loop the image files are place into the open template above a place holder layer like the Background layer. Then using the prototype text contents and the filename are used  create the new content for the text layer and then change the text layers content to it.  Follow that up with a save as for the output file.  Once the output file is saved delete the placed smart object layer.  When this loop ends the script will close the document with no save and end. As for the three inputs you need  the script could either have a dialog like the images processor or simply prompt you for the folders and template file.

Similar Messages

  • Add layers from other psd file via action/batch (Or possibly script)

    Hi
    Brand new to this forum. Quick intro: Eivind from Norway, 32, Photographer, Nikon D300, CS5
    I have tried to make a action where i open 2 files, duplicate the layers from file2 to file1 and it works fine.
    But running the action as a batch i get in trouble, the action saves the from and to filenames when i duplicate the layers.
    Then i found the place function (File - Place..) but i ran in to trouble here also. When i place a psd file containing the layers it becomes smart objects and i can't edit the text layers directly.
    Background: I have a script that copys info from the filename to specific labeled text layers in photoshop. (Name_Age_Title.jpg) so i can batch process lots of files and add info boxes from the filename (Fantastic) Only problem is the i want to make lots of different layouts, logos, fonts. And no i have to adjust the action for every change. Would have been perfect to just have a action/batch/script opening the file, adding the layers from a template1.psd file, running the script adding text to the text layers and saving.
    Any ideas?
    Eivind

    No comments on this one?
    Maybe i have to do the scriping way, any ideas?
    Eivind

  • Created a pdf from a word-file and inserted formfields. The fields works in other pdf-readers(nitro,reader etc), but not in adobe reader and acrobat. Please help.

    Hi,
    I have created a pdf from a word-file and inserted formfields for a work related file. I've used nitro pro to create the formfield. They works in nitro, reader, foxit etc. but not adobe reader. From page 3 and out, the font wont show when writing in a formfield. Some formfield doesnt even show.
    Please help me fix this (hopefully before the presentation at work friday) :-)
    File in question: Dropbox - Byggeplassperm_bico_prosjektledelse_2.pdf
    Kind regards
    Tobias

    Agreed. Adobe makes no claims that their Reader will work properly with forms made from third party software.

  • I am adding itunes to a new computer and I do not want to use the back-up that is in icloud. How do I bypass icloud so i can add music from "My Music" file

    I am installing itunes on a new computer (Windows 8,1). I want to start fresh and would like to import my music from my music file and not from icloud. How do I make sure icloud doesn't automatically populate itunes on the new computer?

    Uncheck Edit > Preferences > Store > Show iTunes in the cloud purchases
    The correct way to move iTunes from one computer to another is to copy the ENTIRE iTunes folder from the old computer (or backup of the old computer) to the new computer.  This will make everything in iTunes on the new computer exactly as it was on the old computer.

  • How to read the 'full resolution composite' from a .psd file?

    I'm working with 16-bit .psd files and have the "maximize compatibility" switch turned on in CS2. When a file is saved, a message box appears indicating that PS is generating a "full resolution composite." I'd guess this is stored in the .psd file somehow, because some of the 3rd party image viewers are able to display the image when the compatibility switch is used, but are unable to display the image otherwise.
    My question is: how can I read this full resolution composite from the .psd file outside of Photoshop?
    If this is the wrong forum to post this question, I'd appreciate it of you'd tell me a better place.
    Thanks,
    Dave H.

    As you guess, it is stored in the PSD, but only with the Maximise Compatibility switch. Without that switch, a dummy image is stored which has the text "This layered Photoshop file was not saved with a composite image.", in English, German, Japanese and French.
    My program
    psdparse extracts each layer in an 8-bit file as a PNG, and the merged image for both 8- and 16-bit files. That link is to a Subversion repository containing source code.

  • Photoshop touch can I edit the text from a psd file with that app ....

    Can photoshop touch edit the text from a psd file from my iMac on my ipad with that app ....

    I don't think you can because a Photoshop file (PSD) with layers will be flattened when you open up in Photoshop Touch.
    I prepared a Photoshop file with one layer of image, one layer of text over a background using Photoshop CS6 on my Mac Pro and upload the PSD file onto Creative Cloud. I then open this file in Photoshop Touch (on iPad) but it comes out as a single flat layer merging all three layers. Hope this helps.
    Below: 3 layers in Photoshop CS6 (with one layer of text)
    Below: Flattened into one layer in Photoshop Touch..

  • Double-click On PSD File And Timeline Disappears!?

    Have dropped a .psd file on track V2 and want to resize it in Motion window.
    So double-click it but timeline seems to vanish and a "negative" clip or something appears in the middle left of where timeline should be.
    How do I make .psd behave like a normal clip and prevent the timeline from vanishing?
    Incidentally the .psd has a coloured shape with a transparent background.
    Message was edited by: Ian R. Brown

    Hi Ian,
    The PSD opens in its own sequence in the timeline to let you change the values of the various layers that it might be composed of. If you make a PNG, it will not save the layers or let you edit their values in FCE.
    If you want to change the motion values of the whole PSD file and not change them individually for the separate layers, select the PSD in your original timeline and click Enter to open it in the viewer.

  • Creating a new title template from a .psd file

    We weren't happy with any of the lower thirds that Premiere had for us, so I got one of the people in my office to create a lower third that would look nicer, but now I've just got this .psd image that I don't seem to be able to get into title form.
    Its just an image of a thought bubble that says "science tips" and then a darly shaded rectangle with blue text inside of it, but when I try to import the .psd image as a logo in the titler screen it comes up with the thought bubble very washed out and see through ( the thought bubble is white on the inside in the .psd file) and the darkly shaded area doesn't show up at all.
    I fell this may be a photoshop error on my part as likely as anything else,  but mostly, I'm wondering if bringing it in as a logo is the right way to go?
    -Dan

    Ann,
    I like that workflow.
    I handle my "custom" Lower-Thirds (or similar) just a bit differently. I create the artwork in PS, and then Import that as an Asset. I'll then do a regular Title for just the text, placing it above the PSD of my graphic. My workflow does mean that I will need to Import that PSD into each Project, but I put a copy into my Common Assets folder, for ease of Importing, as is required. I can also individually animate each element, as is needed. If I wish to animate the Layered elements of the graphic, I'll Import as a Sequence, keeping my Layers, but with Lower-Thirds, I usually end up animating both the graphic and the text as a unit, i.e. the same Keyframing for each of those elements.
    Your method will all one to do a full Save_As a Template, and allow for easy changes of the text, as the graphic is but a logo. Neat!
    Thanks,
    Hunt

  • In Bridge when I R click on psd file and tell it to open in Photoshop it says can't find Photoshop.exe. Photoshop is running at the time. How do I teach it where Photshop.exe is?

    In Bridge when I R click on psd file and tell it to open in Photoshop it says can't find Photoshop.exe. Photoshop is running at the time. How do I teach it where Photshop.exe is?

    I have sort of the exact same problem. Extremely far away from user friendly
    I have an second issue as well: When I hook off all-day it comes up with an 8 hour event!
    And then if I put in a late start hour it pushes end time to next day due to the 8 hour event suggestion.
    All in all this gives a lot of changes just to enter an event.
    Command N
    I learnt from your input to use this fuction. At least that comes up with a one hour event as default.

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • FW: [Adobe Reader] I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie

    What a dumb answer, the payment is done and charged already,
    ADOBE DOES NEED MY CREDIT CARD INFO ANYMORE, PLEASE REMOVE IT
    FROM YOUR DATABASE AS I CANNOT DO IT MYSELF.  It is quite annoying
    to be controlled like this, please confirm that my request has been answering
    with intelligence please.
    Lucie Lévesque
    Date: Mon, 8 Dec 2014 08:09:59 -0800
    From: [email protected]
    To: [email protected]
    Subject:  I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie
        I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie
        created by Bernd Alheit in Adobe Reader - View the full discussion
    Adobe needs the credit card information for the payments.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/6995243#6995243 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/6995243#6995243
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

    Adobe Reader is a FREE program, so you would not enter a credit card
    If you have a subscription to a PAID program, removing your credit card information would cause that program to stop working when you stop paying for your subscription
    If that is what you want, here is the information on how to cancel
    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • How do I stop Windows 7 from searching hidden files and folders

    In XP it was simple with the intuitive Advanced Search Options.
    Even if you enable "Don't show Hidden Files and Folders" in Windows 7, they still show up in the search menu.  A similar post included a suggestion by a support dude to post a question here.  I've searched for every possible solution and yet something so simple appears to be non existent.  Has Microsoft just lost its mind with omitting this feature?  Is this something that will never be solved?  Indexed or not, hidden files and folders still appear in Search.
    Thanks

    what have you setup in Explorer->Organize->Folder & Search Options?
    Don't show hidden and Hide: Empty, Protected, etc. all ticked
    if you have at some stage indexed all those system folders, and subsquently removed those from the index scope, then you may need to rebuild the index so those results are not presented by searches?
    i've assumed that you are getting things like \windows included, and this seems to be typical. perhaps because some common tools like notepad, wordpad etc reside in those folders.
    have you checked out the Indexing Options?
    from memory, "don't show hidden & system" really only obscures the stuff when you're browsing in explorer. the indexing engine doesn't respect that kind of setting. you'll need to get your indexing scope worked out to affect the search results presented.
    I'm not concerned much with indexing, it's just amazing that there is no option to stop "Search" from searching hidden files and folders when "Don't show hidden" is checked - the way it was with XP, etc.  As I understand it whether folder is indexed or not, will not stop "SEARCH" from searching them.  It was quite simple in XP but in Windows 7 it seems it is impossible.

  • Which Version of Adobe do I need to be able to "extract" a page from a existing  file and save/download to another file?

    Which Version of Adobe do I need to be able to "extract" a page from a existing  file and save/download to another file?

    Acrobat Pro or Standard.

  • I want to add hyperlink in the illustrator file and want the output in the PDF

    I want to add hyperlinks in the illustrator file and want the output in the PDF.
    I tried to add the multiple hyperlinks on the text and images in the illustrator by using the attribute panel but the links are not working in the published PDF.
    Is there is any other method to create a hyperlink in the illustrator?
    Can anybody help me out in this
    Thanks

    Interesting, Carlos.
    There's another method by JET: Re: hyperlinks in Ai

  • Not possible to add individuals from other sales orgs into activities

    We are completing the upgrade of our web ic from version 4.0 sp 6 to crm 2007 sp4.  In our 4.0 system usesr were able to create activities and add employees from other business units without issue.  Since our upgrade to 2007 we now have the issue that if a user working in one specific sales org wants to add an employee of another sales org as an attendee or as a towards awareness in our activities within the web ic the system complains.  It stops the user from adding the employee stating that the BP number in question is not valid for this sales org.  No furtherinformation is available.  How can we switch this off? 
    Just to be clear neither our org sturcture nor our org determination proceedures have changed within our transactions used within the web ic's have changed during the upgrade.
    Thanks in advance
    Eddie

    Hi eddie,
    This mioght be an authorization issue, check for the authorization of the role you are using
    thanks regards
    Raj

Maybe you are looking for

  • Why can't I find Adobe Reader on my computer?

    I work for a company with several users and we're having an issue with Adobe Reader. I download Adobe Reader from Adobe.com and it installs like normal and even confirms it's installed. However, I try and find the reader and it is nowhere to be found

  • Update taking too much time

    I have 2 tables      clean_d(d_name,d_code) <D_CODE COLUMN IS BLANK>      dict_d(d_name,dr_code).. d_name is primary key for dict_d table. I have to join the tables on d_name field and update d_code column in clean_d with corresponding dr_code from d

  • Location Services in Reminders - Not Working

    I'm having issues with my Location Services for my iPhone 6 with iOS 8.1.3. Whenever I try and tell Siri a command such as, "Remind me to grab my checkbook when I get home." Siri always responds, "Before I can do that, you'll need to enable Reminders

  • Iphone 3G only will only flash the Apple logo and do nothing else. HELP

    My phone started acting up yesterday and then it started only showing the apple logo. It flashes off and on. I plugged it in the computer and it stopped when plugged in. I then downloaded the new software and it still does the same thing. Any help or

  • Binding function pointer to class member fnction

    Hi, I have created a function pointer to class nonstatic member function. But facing some compilation issue. Can someone help on this. #include "stdafx.h" #include "iostream" #include <functional> using namespace std; using namespace std::placeholder