Question
Renaming Sub-Layer
I have this tiny script to rename a Sub-layer which works the first time I use it, then it adds to the existing sub-layer name when I run it after the first time.
| var docRef = activeDocument; | |
| var sel = docRef.selection; | |
| for (var i=0; i < sel.length; i++) | |
| sel.name = "CUTTER_B" + sel.name; |
Any way to get this to consistently rename the sub-layer?
