Copy link to clipboard
Copied
How can I change the names of the currently selected layers? For example, if there are many layer names and I have selected only a portion of them, how can I rename the selected layers? Thank you, everyone.
A recent topic with code examples for processing selected layers:
There are other examples in the forum if you search.
Using the search term "selected layers" kicks these up:
...
Copy link to clipboard
Copied
Do you always want the prefix to be "txt " with the sequence number to begin on the lowest layer or group, starting at 1 and incrementing for each further layer selected? Do you want to type in a variable prefix name and not just "txt"?
What happens if there are more than 9 layers selected? Should the 10th layer be numbered as "10" and then "11" etc?
Would it be better to have 3-digit zero padding, such as "txt 0001" ... "txt 0010" ... "txt 0099" ... "text 0100" etc.
Where are you stuck with your code? Do you already have code to rename and increment? Or do you have nothing?
Copy link to clipboard
Copied
That's fine. You can add numbers sequentially afterwards, such as TXT plus a number. Thank you.
Copy link to clipboard
Copied
To change the names of multiple layers, start by selecting the layers you want to rename. Many graphic software tools, like Photoshop or Illustrator, allow you to batch rename layers through their layer panel options. Alternatively, you can use scripts or plugins if supported by your software for faster renaming. Rename each layer with unique identifiers or follow a consistent naming convention. This makes organizing and navigating your project much easier!
Copy link to clipboard
Copied
A recent topic with code examples for processing selected layers:
There are other examples in the forum if you search.
Copy link to clipboard
Copied
Thank you very much. I'll give it a try. I searched the forum before, but I couldn't find anything. Thank you again.
Copy link to clipboard
Copied
Using the search term "selected layers" kicks these up:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/group-selected-layers/m-p/9983092
https://community.adobe.com/t5/photoshop-ecosystem-discussions/resize-selected-layers/m-p/12723890
https://community.adobe.com/t5/photoshop-ecosystem-discussions/stroke-selected-layer/m-p/10872660
And many more, enjoy!
Copy link to clipboard
Copied
Thank you
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now