No announcement yet.

Layer Comps to PNG without Numeric Prefix?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Layer Comps to PNG without Numeric Prefix?

    I'm going to be saving thousands of layer comps out to PNGs from a series of PSD files and i recently noticed that the script adds a numbered prefix to the name of the files. I do not want this number. Is there any way to run the script without the prefix?
    The file names will have to be specific to what i named them in the layer comps.

    the script makes a file that looks like _0012_BlueSox.png
    I need it to say BlueSox.png

    If i can't fix it in layer comp script, is there any other application that will strip out the prefix of these files?

    Any advice on this would be appreciated.


    (on a Mac, CS5)
    Last edited by jjwithers; 10-04-2010, 11:07 PM. Reason: more info

  • #2
    Re: Layer Comps to PNG without Numeric Prefix?

    After some research, i realized i can use the Extended Script toolkit and edit the script.

    I tried removing the two lines in the script that add the number and the underscore.
    The script would no longer work.

    I have a new script that i found online but i am still left with the underscore before the file name.
    An underscore is better then the whole numeric string but still not the solution.

    I tried to upload the latest custom script but this forum won't accept that type of file.


    Related Topics


    • infinityspiral
      Targeted layer visibility toggle script
      by infinityspiral
      First post here so sorry if this isn't in the right section. I wrote a few scripts for Photoshop that make my workflow a little easier. The script will take the currently selected layer/group and make it hidden. It also marks it with a "[T]" for toggle. Like this:

      11-08-2013, 02:50 PM
    • mantra
      is there a way to record a script or convert ?
      by mantra

      i understand nothing about script

      but is there a way to record a script?
      i mean like an action

      for example click and select a tool , the hand tool , and let photoshop write the script (that have the command to select the hand tool)
      03-27-2012, 11:01 PM
    • acollazo
      Script for Renaming Layers
      by acollazo
      Hello. I came to RetouchPro by following a link from Adobe Forums which said, "There is an excellent script available for Photoshop which allows you to not only replace words in layer names, but also insert words as Prefixes, Suffixes and Sequential Numbers." But I cannot find this "excellent...
      Are there any scripts to find and replace layer names? There is an excellent script available for Photoshop which allows you to not only replace words
      05-17-2018, 08:41 AM
    • G>>
      Looping script with new parameters
      by G>>
      I'm trying to make this script working in a loop and change parameters in each new loop:

      var layerRef = app.activeDocument.artLayers.getByName("1");
      layerRef.visible = true;

      function saveJPEG( doc, saveFile, qty ) {
      var saveOptions = new JPEGSaveOptions(...
      09-01-2015, 06:59 AM
    • Sequitur
      Script to find/replace text in layer names?
      by Sequitur
      I'm looking for a script that can do a standard text "find and replace" of group names and layer names within photoshop. I'm not sure if this is actually doable, but it would be helpful if anyone knows of such a routine. I'm working with documents that have 1000+ layers that need to conform...
      09-16-2008, 12:39 PM