Photoshop layer groups with incremental numbers
The Photoshop action creates the CC 01 layer group with the Curves 1 and the Hue Saturation 1 adjustment layers inside the CC 01 layer group.
Typically, it is necessary to add multiple CC 01 layer groups to edit the Photoshop file.
To stay organized, it would be useful to automatically increment the CC 01 layer group number by 1 every time the action runs.
What is the simplest way to achieve this with a script?
I’m thinking the script should follow these steps and repeat steps with adjustment layers
Crete variable CCcnt
Assign value CCcnt = “CC 01”
Check if CC 01 layer group exists
If false
Run action to make CC 01 layer grp
Exit script
If true
Run action to make CC 01 layer grp
Rename CC 01 to CC 02 with the script
Get the last two characters of the layer group name
Increment the last character by 1
Get the new layer name CC 02
Assing to CC 02 variable CCcnt
Exit script