Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

Rename Layers to Title Case with Script RegEx

Community Beginner ,
Jan 10, 2024 Jan 10, 2024

Hello! I've been researching here and found posts showing a script called "Layer Name Editor" by "Paul Riggott", which renames multiple layers and accepts regex. "(script image down)"script rename layerexpand image

 

It would be possible to use this script to rename layer/change layer to Title Case, Sentence case, lowercase and UPPERCASE , Would it be possible to do this using the regex contained in this script?

 

Script mentioned

Authored: Paul Riggott

https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Name%20Edit.jsx

Modified by: @Stephen Marsh 

 

Post about:

https://community.adobe.com/t5/photoshop-ecosystem-ideas/p-rename-multiple-layers-in-one-go/idi-p/12...

TOPICS
Actions and scripting , Windows
455
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 10, 2024 Jan 10, 2024

@Lilter34632643vweg 

 

Glad that you worked out how to post to the forum from our PM discussion!

 

Working with scriptUI is rather complex compared to standard scripting. In theory it should just be a case of adding some extra radio buttons in the replace group and then linking each checkbox up to a function (leave as is, lowercase, UPPERCASE, Sentence case, Title Case).

 

But anything to do with UI is usually easier said than done.

 

Then there is the new UXP way of creating floating panel user

...
Translate
Adobe
Community Expert ,
Jan 10, 2024 Jan 10, 2024

@Lilter34632643vweg 

 

Glad that you worked out how to post to the forum from our PM discussion!

 

Working with scriptUI is rather complex compared to standard scripting. In theory it should just be a case of adding some extra radio buttons in the replace group and then linking each checkbox up to a function (leave as is, lowercase, UPPERCASE, Sentence case, Title Case).

 

But anything to do with UI is usually easier said than done.

 

Then there is the new UXP way of creating floating panel user interface.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 11, 2024 Jan 11, 2024
LATEST

At first I thought there was some way to do this using just regEx in the "Replace" and "With" option, without modifying the script itself. As an example in the image below, PowerToys PowerRename, which I recently discovered and can use several codes on it to rename it the way I choose. (Example Image Below)

aScreenshot 2023-12-31 103011.pngexpand imageAnd then I looked deeper into RegEx and whether it was possible to make these changes just by typing a few characters in the "With" location, and after a lot of research I didn't find any solution and it's not possible to do it.

 

So the viable option would be the interesting idea you mentioned of creating some extra buttons in the mentioned script, but if it weren't so laborious to do, would be very interesting!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines