I have a text layer with the name Mary, this text layer has a layer style, shadows and position.
Need a script to change the word by any other name.
Please someone can help me
hopefully, you can understand me to help me
Regards
Change a word in a text layer
-
Paul MR
Change a word in a text layer
You need to have the text layer selected.
Code: Select allactiveDocument.activeLayer.textItem.contents = "New Name";
Code: Select allactiveDocument.activeLayer.textItem.contents = "New Name";
-
MIRYAMM
Change a word in a text layer
Paul, thanks for reply, thanks for your time.
The script works perfectly but I have a problem, the "new name" I have to change every time I make a new document, and it is very time consuming to have to open the script for editing.
Need something like this post: bb/viewtopic.php?f=9&t=5180
Or, that the cursor, it was ready for me to write the name I wanted.
Hopefully, you can understand me to help me
The script works perfectly but I have a problem, the "new name" I have to change every time I make a new document, and it is very time consuming to have to open the script for editing.
Need something like this post: bb/viewtopic.php?f=9&t=5180
Or, that the cursor, it was ready for me to write the name I wanted.
Hopefully, you can understand me to help me
-
Mike Hale
Change a word in a text layer
If you just need the name you could use a simple prompt.
Code: Select allvar lName = prompt('Enter name');
if( lName != null ) activeDocument.activeLayer.textItem.contents = lName;
Code: Select allvar lName = prompt('Enter name');
if( lName != null ) activeDocument.activeLayer.textItem.contents = lName;
-
MIRYAMM
Change a word in a text layer
Thanks Paul and Mike
How wonderful is just what I needed.
Regards
How wonderful is just what I needed.
Regards