Automate the prefix in layers of files...

Hi all

I hope someone can help me with some automation. I have no idea about the scripts, I know just saying smart things can be made, I hope someone could point me in the right direction!

I'm the superposition of the t-shirt on images of blank t-shirts designs.

Each different color T-shirt (15 colors) is on an individual layer, so I have 15 layers.

To create 15 images of a particular t-shirt design (an image for each color shirt), so I need to:

(1) import a drawing on the top layer

2) update all 15 compositions of layers

3) click on the button "title of layers in files.

(4) put a unique identifier in the file name prefix field

(5) go to 1)

So I guess my question is the following:

Can I automate this? For example can I have the derived prefix the name of the layer? So I had to name just the top layer (with design on), and PS removed the layer name in the file name prefix field?

And then I update all layers to automatically (when I put the next design on) rather than each of them choose and manually update?

Any help appreciated for a novice script!

Kind regards

Mark

If you put the top layer with a layer of smart design and then manually update the layer comps once and then save the file as a template, you can then use the Object layer-Smart menu element - replace Cotents... to change the design in a way that would not require more updated of the layer comps. Alteration of the content of a dynamic object affects not the layer would have status model as the addition of a new layer.

In the layers to Files.jsx if you find the line

var fileNameBody = exportInfo.fileNamePrefix;

and replace with

var fileNameBody = name of the upper layer app.activeDocument.layers[0].name;//

The script will be no longer use the prefix of the dialog box and use the top layer as a prefix name instead.

To automate the whole process would require the creation of a custom script. Layers to files script was not written to be called from another script.

Tags: Photoshop

Similar Questions

  • just updated to photoshop and the script 'convert layers in files' disappeared.

    Why! ??? I need that.  How can I get that back, stressed at work.

    What your environment?

    Windows 10 with Photoshop CC 2015 there as a layers in files... script.  In fact that CC 2015 has a new script, plans for additional work in PDF format that 2014 CC does not?

  • Is it possible to automate the export of my InDesign file to several different export settings with PDF files?

    OK, so not sure if this is possible, but it would be a great time for me if possible gain, so I throw it out there.

    I often work on spec sheets to work in InDesign and when I finished, I have preset PDF export settings for Print and Web. Printing has all the markings of bleed and printer, and one, web well... you get the idea.

    For now, I need to run export separately; so I do my export to a PDF print... and then I make my export to obtain a PDF optimized for Web.

    These are separate tasks, but surely there must be a script or another way to get InDesign just export the two PDF files at the same time, respecting the presets they are posted.

    How can I do this?

    Looks like it's what you're looking for:

    http://www.ID-extras.com/script-to-export-multiple-PDFs-at-once

  • Whenever I have save my PSD, it automatically rasterizes all text layers within the entire file. Help

    I'm an Art Director who is very familiar with the following Adobe CC - but something strange happening that I can't understand. I'm working on a project that must constantly updated Web pages when providing info, etc. changes - so I need to make small alterations quick both imaging and copying. My big problem is everytime I save the PSD, it automatically rasterizes all text layers within the entire file. I have never experienced this problem before - and it's super super frustrating. Help

    Hi steffi_steff,

    Would suggest to reset the preferences of Photoshop to the default state and then try to save the PSD file.

    You can follow this link to reset the Photoshop preferences:

    Using Photoshop | Preferences

    Kind regards

    Claes

  • Is there a way to export layers as files with all the additional numbers in the prefix?

    Hello world

    I officially spent 8 hours of research on this topic and I can't seem to get anywhere...

    I want to export a group of layers to files. I know the layers for the script file, not what I ask. I ask how to get rid of the "0000_0000" who loves to appear for no aparent reason.

    I have several sepaaret psd with about 10-25 layers each so I won't have to cross the bridge and rename everysingle time...

    Thank you very much in advance!

    see you soon

    -J

    We could, I suppose, inactivate line 1023

    fileNameBody += '_' + zeroSuppress (i, 4);

    by adding"/ /"at the beginning or delete.

    But maybe someone else has a Script customized to the task anyway.

  • Cannot find the default folder named temporary file where downloads get automatally sent to download.

    I have an acer aspire one.  It stops on its own and won't stay on.  Sometimes it turns on but the screen does not do anything, but the backlight.  I'm on the view of web acer and found my exact problem.  I need to load the BIOS update and install it.  I tried to doload, but the file went in a folder called temporary files automatically.  I can't find temporary file anywhere to open the BIOS download. can someone tell me where is hid it temporary file that Vista uses to default downloads?
    my name is tom.  Thank you

    There is no default location for downloads - usually the location is selected when you click on the "Save" button and then you know exactly where it is.  I guess because you know the name of the file you downloaded.  We will do a COMPLETE system for the file search and then we'll find out where he went.  If it does not find the file, then download has failed and should be tried again (this time trying to pick the location where it will be saved).

    To search for the folder C: whole disk in Vista go to start / search and type in ' or '. As you type, you'll see two hyperlinks appear just above where you type and we'll search everywhere.  A click on it.  Who will do a fast indexed search and bring up a dialog box.  Click on advanced search.  Click the drop-down location and find the C: drive and click on it. Check the box "include not indexed, hidden and system files (might be slow).»  Then click on search.  You will now search your entire hard drive to the specified file.  And Yes, this isn't a very effective way to search the entire disk for a file but it is how it is done in Vista.

    If this does not work, then try to search for temporary files (you are of course on the name - it doesn't seem right to me) which is probably the name of the folder where it was sent using the same process as above and see if you can find it.  If more than one rises, see each one until you find your file.  If it is through Internet Explorer, and then see the following for the location (although I am not sure if this is the place for which you're searchinng): http://www.milincorporated.com/a2-temporary-internet-files.html.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • After the automatic updates of Windows8 all my files disappeared

    After that the automatic update performed by Windows8 about two weeks ago, that all my files were deleted, all system settings and favorites are gone. The image of the Office was changed, as well as the background was changed from green to blue. Well, I managed to find my files in a file system, it back office. However, today, I just restarted my computer and the parameters are all back as they were 2 weeks ago but all my files are gone for good. There were about 200GB, now my drive C/watch 390 GB free on 440 Go, so my all files have been deleted. No search engine can find them. They are all gone. I had saved in this project, I worked on during 2 months and have no idea what I'm supposed to do now. How Windows can delete something I never heard it? I have not updated, restored or anything like that. Quite simply, I rebooted my computer.

    Can any guru who created this Windows8 how to get the files that my career depends on it?

    Hi Jenny,

    To provide the proper resolution, I would need more information on your side.

    1. do you receive any error messages? If Yes, what is the exact error message?

    2. What is the item number knowledge base of the installed Windows Update recently?

    Method 1:
    If files are missing from the library, I suggest you try the following steps.

    (a) go to the libraries in Windows Explorer.

    (b)with the right button no matter what folder gives you an error.

    (c)delete the folder.

    (d)with the right button on the "libraries" folder

    (e), select "restore default libraries".

    The folder you just deleted will now be back and fully functional with all your documents safe and sound.

    Method 2:
    If the problem persists, I suggest you to virus scanner to make sure that the computer is virus-free.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note:

    1) the Microsoft Safety Scanner expires 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    2) if you run the virus scan of the program which is infected with the virus will be deleted. Therefore, reinstall the program. Also, if files and folders are affected by the virus, while they might even get deleted.

    Check out the link for more information.

    Libraries: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-8/libraries-FAQ

    Hope this information helps. Answer the post with an up-to-date issue report to help you further.

  • Automate the backup of file

    Hello

    I am trying to automate the backup of files version using process has the configuration of the client/batch file, in the user guide it States it is possible but did not give any details as to what are the parameters to be used to do this, nobody knows the format needed to run this process.

    See you soon

    Chris

    Refer to ScottQ response of the next thread, let me know if you need help.

    Re: Can we use mixture of DRM for copy version? Just for print version

  • How to automate the unique fusion of multiple JPEG to PDF files.

    I'm looking for an answer that does not purchase a license, or by downloading a shaded part of software.

    I have a batch of a software suite that creates multiple JPEG files every morning. The final product must be a single PDF, prefer it to order a certain way, but not completely necessary. I tried to do it thanks to Excel, but it was very awkward. I'm trying to implement through Adobe Action Wizard and can create the file I'm looking for, but I can't find how to automate in a batch file that I can task in Task Scheduler.

    Currently, I run a file backup all export to PDF and JPG. I then insert page for each PDF in the order I want to insert Pages using the. I can't understand how to automate the Action once it is implemented.

    These are designed to run early in the morning and the PDF picked up by different software and sent to before the start of the day.

    Any assistance in the automation of an action would help enormously.

    Thank you.

    I think you should forget Acrobat. Batch jobs need under license for this software. Acrobat is not. Software Adobe for the server might cost 100 times more.

  • Creative cloud automatically moved near 5 000 cloud files to the trash.

    Creative cloud automatically moved near 5 000 cloud files to the trash. I have about 20 minutes walk from my office, go back and see that 4 888 + files have been moved to the trash in my reviews of mac. There is no way that I could have checked that many files individually to throw, so what gives? How could he do it automatically? How can I solve this problem? Surely, I have time instead of hand than many back files in their records.

    To understand why this happened please send logs of the basic clock the Core Sync team.

    Use the collector for the Adobe Log tool to https://helpx.adobe.com/creative-cloud/kb/cc-log-collector.html and send directly to newspapers as well as the explanation of the problem to [email protected]. Please provide additional information described by Warner Harress in this post on the Adobe forum at https://forums.adobe.com/message/8385752#8385752.

    To recover the files to their original location, please use the option of restoration of the Archive at https://assets.adobe.com/files?filter=archive.

  • Prefix to the names of layers

    Hi, I'm not very good at java scripts so I was wondering if you could help.

    I would like to be able to select a group of layers in photoshop and run a script that could precede all layer names with what I choose in the script.

    I don't want any UI, I just that it adds the prefix and do it, no questions asked. I'll edit the script to edit the text in the correct prefix. It must affect only the selected layers OR layers in a selected folder.

    I know it's probably stupid simple.

    Thanks in advance.

    Ian

    Well Yes simple...

    #target photoshop;
    app.bringToFront();
    if(documents.length){
    var prefix = "my new prefix-"
    var selLayers = getSelectedLayersIdx();
    for (var a in selLayers){
        selectLayerByIndex(selLayers[a]);
        activeDocument.activeLayer.name = prefix + activeDocument.activeLayer.name;
        }
    }
    function selectLayerByIndex(index,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( "MkVs" ), false );
    try{
    executeAction(charIDToTypeID("slct"), desc, DialogModes.NO );
    }catch(e){}
    };
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i		   
  • Log file SPOOL file on Local disk with the addition of the prefix date system?

    Hello world

    I use the oracle 11.1.0.6 version.

    I'm trying to run my pl/sql package with a control script that uses a coil to write a log file in my local disk. While running, I get an error stating that the invalid file name.

    could someone please help?


    SET SERVEROUTPUT ON;

    COIL c:\|| TO_CHAR (SYSDATE, ' DD/MM/YYYY HH24') | "_rlv.log' ADD;

    SELECT TO_CHAR(SYSDATE,'DD/MM/YYYY hh24:mi') FROM DUAL;

    EXEC PAC_RLV. CALL_ALL();

    SELECT TO_CHAR(SYSDATE,'DD/MM/YYYY hh24:mi') FROM DUAL;


    I need the sysdate as prefix to my log file.

    Thanks in advance

    do not use ':' file name

    column f noprint new_value by ff
    Select TO_CHAR (SYSDATE,'DD_MM_YYYY HH24 MI') double f;
    REEL 'c:\&ff._rlv.log' APPEND;
    spool off

  • I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign docum

    I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign document?

    Read about to merge data in the help files.

  • How to automate the process of loading data using load file & Task Scheduler

    Hello

    I do the automated processes to load the data into Hyperion Planning application using the file data_Load.bat & Scheduler of tasks.

    I created Data_Load.bat file, but the rest of the process, I cannot complete.

    Could help you me, how to automate the process of loading data using the file Data_load.bat & task Scheduler or what are the rest of the file is require it to achieve.

    Thank you

    In response to your question using the maxl for loading scripts?

    If Yes, I've seen and deliver in the batch (ex: load_data.bat) that is you do not have the path of the maxl script complete with a batch when passing through the event the task scheduler will work, but the log file and / or error will not be created. Which means lots claims it linked task scheduler, although he did not do what you need to.

    If you use maxl use this as the batch

    "essmsh C:\data\DataLoad.mxl" or you can also use the full path for the maxl or work elsewhere. The only reason why I think that the maxl can then not work is if you do not have the updated batch updated to call on all LANE changes maxl or if you need to update your environment variables to correct the command essmsh to work in a command prompt.

  • Open, save a copy of the psd as a layered tiff file

    Looking for script or action that would allow me to open selected (perhaps a folder) psd files, save them under layers of hair in the same folder. or a new folder also.

    Suggestions, ideas.

    Vince

    The best thing to do is to create this action yourself. You will learn a lot from that.

    Open one of the PSD.

    Create a new action and start recording.

    Choose file--> save as and select the Tiff format and make sure layers has a tick mark next to him.

    Any location you save will be held where all files go when you run the action (by default anyway).

    Do not change the file name, in this way, the names of original PSD files will be used when you batch process.

    Now, close the file without saving changes if you want to use this action on a folder. You don't want to accidentally spoil the original files after all.

    After doing these things you can stop the recording.

    Now, the action was created.

    To run it go to file--> controller--> lot.

    Select your newly created Action.

    For Source, select 'folder '. Then choose the folder with all the PSD in Photoshop you want to save as TIFF files in layers.

    If you want to save in a different location just change this in the 'Destination' menu by selecting "file".

    All you have to do is now click OK and look at your batch of additional transformations.

    Here is the action example that I just created to save the PSD in Photoshop layered tiff files:

    https://DL.dropboxusercontent.com/u/24262740/save%20To%20layered%20tiffs.ATN

    In this example layered tiff files go to 'C:\test\ '. I created it to make sure that what I said actually works.

    Edit: screen on the lot, you can also select the Source "Opened files", since that is what you wanted to do. If you do that with the example action above the open files is closed after the batch process took place. It's because when I created the action I closed the file before to stop the action. When you create these actions yourself, you get to decide these small details but important.

Maybe you are looking for

  • Cannot set new bookmarks; Some have disappeared; saved but rebuilt; lost a lot more. Help!

    Problem has grown gradually over a period of 2-3 days. First of all, some favorites have disappeared from the toolbar. At the same time, 'Bookmark this Page' has stopped working, and cleared from the list "recently set bookmark". When I followed the

  • Re: Satellite A100-813 - BIOS reports inserted 3 GB but 4 GB

    Satellite A100-813Model No.: PSAA8E Recently, my laptop 2 GB memory @ 533 mhz were bad and I decided at this level to 4 GB and carried 2 x 2 GB @ 633 mhz.Though according to the instructions in the manual, it supports 4 GB maximum, but my bios shows/

  • Sound but no picture with a key of dvb hybrid usb (PX1256E-1TVH)

    HelloI am usind this usb key in windows 2000 on a laptop from another manufacturer (that is to say PIVm 1.8 Ghz, 512 MB RAM, ATI Mobility Radeon 7500 with 32 MB of memory dedicated)With Savvy TV 2.2.2 I use it with a normal antenna (used for my usual

  • Checksum (4 characters)

    Hi all I have a serial device with a communication focused on the message, where he used the checksum of 4 characters at the end of the message (command). Example command: "START " (space is included at the end). in ASCII: "83 84 65 82 84 32." so the

  • Playtore download

    Help... I get "Error retrieving information from Server" when I try to dwnld from the Google game store