Rename the selected layers in batch

I am trying to find a script to rename/renumber lot, a group of selected layers.

So far, I was able to find a script that renames each single layer in a Photoshop (overkill) document. Or there is the trick to rename CS6 (too slow) tab.

I'm routintely export PSD in Illustrator for use in After Effects. But in Photoshop, I'll take a few hundreds of layers named < path > or < path > + < path > or < group >. Change of name by hand, it's out of the question. But I don't want to rename all the layers of the same.

Any suggestions?

I wrote to you here...

names.html http://www.retouchpro.com/forums/Photoshop-Scripting/23234-script-Find-Replace-Text-Layer-

Tags: Photoshop

Similar Questions

  • Script to rename the PSD layers

    Hello

    I have a lot of documents PSD and rename layers.

    Layer names are like 'natural environment - natural environment - 103 89' and I want to the rename 'environment_89, environment_103' etc. in several layers.

    I'm looking for a script for this.

    Can someone help me?

    Hello!

    Try this:

    CalcChangeNom.jsx

    var doc = app.activeDocument;

    If (doc.layers.length > 1)

    {

    I have = doc.layers.length

    for (x = 1; x<= i;="">

    {

    var calqueSel = doc.layers [i - x];

    calqueSelNom = calqueSel.name;

    Result = calqueSelNom.split("");

    If (result [0] == "natural" & result [1] == 'environment')

    {

    calqueSel.name = "environment_" + result [3];

    }

    }

    }

  • How to get the selected layers?

    Hi, how can I use the SDK for a list of the layers that are selected by the user when the plugin is activated?

    Let's talk terminology.

    an "activation" on a layer effect is not really the process of events.

    When an effect is used firstly to æ session, this is the function GlobalSetup()

    is called.

    This is the most 'activated' like thing in the effect by applying the process.

    This function is called only once per session (in general) and data

    allocated to it is shared between all instances.

    then, whenever a new instance is applied, the specific instance

    Function SeqeunceSetup() is called.

    It is the only clue you get tell you that a new instance is created.

    Unfortunately, in the course of this appeal you still cannot check the layer on which

    the effect will be applied, as at that time there AE still because preparations

    and has not done this topic yet. (try to get the effect layer will

    give an error)

    so when you say "on" I'm assuming you mean "applied".

    If an instance of the effect is already present in an economy effect, you get not one

    Call of SequenceSetup(), but a SequenceResetup() call instead. (or Unflatten())

    now, to detect if another instance is present on a layer, you must analyze

    This layer effects and check each because it is installed a key. (and match

    to you, of course)

    you will need to use:

    AEGP_GetLayerNumEffects

    AEGP_GetLayerEffectByIndex

    AEGP_GetInstalledKeyFromLayerEffect

    and now you hit the real problem.

    an effect cannot remove another effect of the same layer, sure it is. It will be

    very probably launch an error message as AE manages all the layer effects

    and suddenly; y an is missing.

    You can solve that by using a CEAP separated with a slow hook and make the

    deletion, or all just throwing your own message to the user by saying

    You cannot have two and set a flag on the second instance of turn it off

    process.

  • Script to change the selected layer to one of the drop-down list in the layers palette colors

    Hello!

    I was wondering if anyone knows of a script that would allow me to change the selected layers (single or multiple selection) in 'Light Blue' or all the colors in the menu drop-down? (see attached screenshot)

    I found the following but it changes all layers and is the RGB color.

    -----

    say application "Adobe Illustrator"

    set current_Layer in current document

    view the dialog box "in the current document there is" & layersCounter & "layers." & "Recolor label layers?"

    Repeat until (layersCounter = 0)

    set color of layer layersCounter in the current document to {Light Blue}

    set layersCounter to layersCounter - 1

    end Repeat

    end say

    -----

    Screen Shot 2015-06-12 at 10.46.46 AM.png

    I don't know how the script so any help is greatly appreciated. Thank you in advance!

    John

    as far as I can tell this is only possible with a few other modifications... Since 'selected' is not a property of "layers" javascript cannot determine if you see a highlighted layer in the layers panel.

    you could do one of 2 ways. Depending on how many layers you want to change the color, you can either make those visible or hidden (for example, if you want to change to 80% of the layers of a specific color, hide others 20%). and then simply add a clause inside the loop if for.

    var doc = app.activeDocument;

    var layers = doc.layers;

    Blue of var = new RGBColor();

    Blue.Red = 79;

    Blue.Green = 128;

    Blue.Blue = 255;

    for (i = 0; i<>

    If (layers [i] .visible == true) {}

    var = aLay layers [i];

    aLay.color = blue;

    }

    }

  • Rename the particular XML tag

    Hi the Indesign Experts,

    I am confused many in the sub question. I have an indesign document. In the xml structure, if I select an item and when trying to rename the selected item markupTag.name, is changing all elements with the name of the selected elements.

    input.GIF

    I use the code to execute after selecting an element of xml below.

    App.Selection [0].markupTag.Name = "test";

    But the look of the output like below.

    output.GIF

    But I want onlu to rename the selected xmlelement.

    Any idea to do?

    Thank you and best regards,

    Vel.


    You change the name of the tag applied rather than assigning another tag. Try this:

    var testTag = app.activeDocument.xmlTags.item("test").isValid ? app.activeDocument.xmlTags.item("test") : app.activeDocument.xmlTags.add({name: "test"});
    app.selection[0].markupTag = testTag;
    

    Jeff

  • Iteration through the activeDocument.layers is very slow

    Hello

    I am trying to build a table of all visible layers currently in a document, and the only way I know how to do it is by performing an iteration (by using where loop method) app.activeDocument.layers however, the problem is it is really slow for some reason any. For 37 layers, it will sit there for about 10 to 15 seconds and the mouse pointer will fluctuate between normal and busy pointer.

    A few questions:

    (a) is there a better way to build the list of visible layers?

    (b) why it takes so long to complete this (Note: there is only a single action in the loop that is assigning the active layer in the layers panel to l):

    var layers = app.activeDocument.layers;

    for (var i = 0; i < layers.length; i ++)

    {

    var l = layers [i];

    }


    ?

    Any help on this will be appreciated!

    Thank you

    Nate

    If you have CS4, you can use the function below to get the index of the selected layers AM.

    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
    

    There isn't really any documentation by using the Action Manager. The javascript guide that ships with Photoshop lists the properties and methods for the action descriptor, Action reference and list of actions. And the app.object methods to convert an ID.

  • script to rename the layers in alphabetical order

    Hello world

    I have a name change script that works only on the numbers and I want to make it work for the letters too.

    What I want to achieve is to select a few layers-> load the script-> enter the desired name of the layer and brackets insert the letter of where to start. The script then iterates through the alphabet rename the layers and adding the letter from coresponding to the name and remove the brackets. For example, I select 4 layers, loading the script and when the guest comes on... Enter the name: test [C]. In the end, that I should have renamed layers testC testD, tests, testF

    Any help would be appreciated!

    Thank you

    So what you wanted, it is for renaming selected objects, no layers, right?

    Check this script, I took a different route, I added some comments, if you have problems with it, do not hesitate to ask

    // this script Renames selected Objects with a base name plus an incremental suffix
    // Carlos Canto // 07/03/2013;
    // http://forums.adobe.com/thread/1243774?tstart=0
    
    var doc = app.activeDocument;
    var sel = doc.selection;
    var rename = prompt("Enter the name and ONE character suffix (comma separated, no space):","test,A", "Increment Rename Selected Objects");
    if (rename!=null) {// quit if pressed Cancel
        var nameArray = rename.split(","); 
    
        var base = nameArray[0];
        var suffix = nameArray[1];
    
        var charCode = suffix.charCodeAt (); // convert the suffix character to Unicode
    
        if(sel.length>0){
            for(var z=0;z		   
  • On adobe Illustrator, how could I sellect a selection of layers and move to the top of the tab layers everything always now on layers selcted, other than to scroll to the top?

    On adobe Illustrator, how could I sellect a selection of layers and move to the top of the tab layers everything always maintaining on the selcted layers in a sub-folder already done, other than to scroll upwards and gout? As it takes long time, if there are a few hundreds layers. Shortcut keys / setting?

    I'm afraid, is not a feature in artificial intelligence. [PS it would be Shift-Cmd / Ctrl +] or [.]

    Add as a feature here request: Illustrator feature request/Bug Report Form

  • Creation of 3 layers of size equal in the selection

    Hello people! Thanks scripts found here in the forum, I have been doing agility and given life in my projects. Here again the search for solution:

    I need to create blocks of size equals three in a certain selection that will create that I selected in the document, with each block there 20px between them. There is a script that correctly position the 2 layers of 20px by 3000px dimensions so that there are three equal areas. ?

    This script can do what you want.

    Mask Maker

  • Align layers to the selection within the artboard does not not in 20151114.r.301 x 64

    A very annoying bug has been introduced since the last update:

    If you perform the following steps in a work plan

    (1) make a selection

    (2) select a layer in the layers panel

    (3) layer > align layers to selection > (al six options)

    The layer is not aligned to the selection, but to the artboard instead! Is anyone have a work around?

    By aligning the selection is essential for the harmonization of layers in a drawing or model. I hope that Adobe will solve this ASAP!

    Screen Shot 2015-12-02 at 16.03.07.png

    This is a bug.

    It's a side effect of change where we allowed layers be aligned with work plans parent; We does not check for an existing selection mask before allowing the artboard to be a widening of the entire alignment.

    Fix is in preparation. Can't comment on the ETA for you, unfortunately. Just know that it is in the pipeline.

    My apologies for the inconvenience.

  • Hi, my photoshop won't allow me to select layers with my mouse, I have to go to each individual layer on the side to select. On the computers at my school, I was always able to select a layer group to the right of the file I'm working on that. Having

    Hi, my photoshop won't allow me to select layers with my mouse, I have to go to each individual layer on the side to select. On the computers at my school, I was always able to select a layer group to the right of the file I'm working on that. Have to go to the layers panel and select each layer one is really long time and not effective - what do I do to fix this?

    Hi Cartere49372123,

    I hope you do well.

    Please check this link below and see if it helps

    http://www.photoshopessentials.com/basics/layer-shortcuts/

    Concerning

    Rohit

  • by selecting the shape layers photoshop 2015

    Hello

    Today upgraded to photoshop 2015,

    In my work, I use a lot of pen / combined with normal layers of shape layers

    Normally I use the path Selection tool to select my layers of path, but since the new update

    I can, select t them more also not with the right mouse click on, so it's a little frustrating

    to find my diapers, anyone experience the same problem or someone knows how to do things in 2015.

    Thnks,

    Set the selection tool of the path to "all layers".

  • Is it possible to only select the visible layers to copy/paste in place.

    Hello!

    I must be missing something.  In Adobe Illustrator, when you select a layer (or Sub-layer) to copy, is it possible to copy only visible layers and not those hidden?

    When I provide my clients with their final illustrator files, I only want to register the approved artwork.  Currently, I make a copy of the file and go through and delete hidden files, it would be much easier to copy and paste in place visible layers in an Adobe illustrator file.

    Thank you!

    Given that your items are grouped, select objects on the artboard should be as effective as Select layers in the layer panel.

    You will not be able to resolve this layer-selection-irritation. Happened for some versions. You might consider to report it as a bug.

    The link that I used to post on these occasions no longer works. Google sent me this one, I hope it works for you:

    Home

  • Photoshop CC Auto-possibilite select the hidden layers

    Hi, I am not sure if this is a bug or what... When I click on and drag with the move of the automatic selection of the multiple layers tool, it will not select only the layers that I wanted, but also layers hidden in the same area of my selection (or at least, layers, which are in the hidden groups).

    For example, say I have a layer group. I duplicate the group, and then make the original group invisible so that I can create an alternative version. When I clock and drag to select the objects in the new group, the (hidden) in the former group objects get selected as well, so I'm obliged to selection click on every article I want to change... forever.

    This is different from all previous versions of PS and a big trouble.

    If someone else can confirm this bug, or is it just me? Or not consider you this as a bug? I see some specific cases where it can be useful, but I would like to control this behavior as a preferece. Maybe there is already a preference for this problem and I just have not found. Any comments would be more useful

    See you soon,.

    Cory

    Discussing this bug here:

    http://forums.Adobe.com/message/5423270#5423270

  • It is possible to select more than one layer by selecting the first and the last layers?

    I frequently get Illustrator files which are individual objects such as the paths on separate layers that can be grouped together to make the shorter layers. I find that I have to change click on each individual layer to select it to finally bring together them. Sometimes, I have 25 or so layers that I need to select. Is there a way to select the first and the last layer in the layers palette and have Illustrator select all the layers in the meantime?

    Don't know about the selection of layers of first/last, but to select several consecutive layers in the layers palette...

    Option-click on (Mac) on a layer to select it and, with the option always pressed key, drag to the bottom of the list - DO NOT slip on as logical target icons you like.  When you drag to the bottom of the list of layers, the icons of the target will become selected.

    Shift + Option-click allows you to ignore the layers and continue to select consecutive additional layers on the bottom of the palette.

    Note: Drag slowly or some layers would not choose.

    Strange, I know.  It took me years to come across this.

Maybe you are looking for

  • HP pavilion p7 - 1147b Win 7 - Acrobat PDF 7.1 error

    After you install Adobe Acrobat 7.1 on my new desktop, I get an error message "warning 20225 unable to create a new item: PDF port / printer.".  "The PDF printer may be unavailable.  I don't see the listed printers with PDF printer and cannot print d

  • ConfigFree delivers, please help

    I have a satellite a75 laptop with a wi - fi card built-in. When I use windows to detect the networks, it works fine, but when I try to use configfree (I prefer to use on windows) it says my that I need to turn my switch on wireless on the side of th

  • elements of array Dublicate

    Hallo, I can't really explain my problem, but my example will normally clear... (I have an array of random size: 4-4, 10-3,... and random values) Thanks for your help! in: 1 2 3 4 5 6 7 8 9 10 11 12 departures: 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10

  • Close all apps button missing Xperia Z3

    After I updated to the lollipop, the 'Close all' button in the recent applications disappeared. Strange take-out features in an "update", isn't?

  • How to change the photo folders in individual photos?

    I have several photo folders in "my pictures" I want to put in place all the individual photos and eliminate files. How do I do that? Also, how can I stop folders are made when I upload photos from my phone to my computer?