Copy link to clipboard
Copied
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)"
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:
1 Correct answer
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
...Explore related tutorials & articles
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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)
And 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!

