Add Name Script
by Sigrid, Owner of PSPx3
Written in PSP9 for those who have a good
knowledge of PSP and a basic knowledge of scripting.
Any similarity with any other tutorial is purely coincidental
This tutorial goes a step further from the previously released tutorial
Easier Tag Script
It provides a new script that asks for names and adds them according to the previously created script.
Some Script-Editing in the Text Editor is needed for it to work.
You need the following
Preparations
And now we begin:
- Create a new Folder for your tags and copy your tag and the other materials into that folder. Add the folder to your Scripts (Trusted) path in PSP.
![]()
- Open the Example tag (or one of your own) in PSP
(Note: the tag has to be in PspImage-format or another that supports layers because the script will only add layers with your tag names to the existing tag without merging.)
Either record a script now that adds your name to the tag or copy the script you have created with the Easier Script Tutorial into the folder of your tag. You should now have at least three files in that folder: Your tag, the script that adds the name and the text-file from the Materials.
(Note: The folder with your tag should be in the Scripts (Trusted) path of your Paint Shop Pro as well or there will be a conflict when saving the tags.)
![]()
- In your Script-Toolbar select the script you have created
![]()
Select "Edit Selected Script" and press the button "Text Editor..."
![]()
- Your Notepad should come up with the script you have created.
![]()
Open the "TextForNameAddingScript.txt" in another Editor Window and copy the first line.
![]()
Back in your own script, insert the new line directly under the first line of your script.
(Note: in later versions of PSP the first line of the script looks like this "from PSPApp import * " but that doesn't matter for this tutorial. Just make sure that the line from the text-file is the second line in your script. )
![]()
- Still in your script search for the line where you added your text. I added my name so my line would be
'Characters': u'Sigrid',
I just searched for "sigrid" of course.
Select the second part of that line (the u'Sigrid' in my case). But be careful, don't delete the comma by accident or the script will fail.
![]()
Back in the "TextForNAmeAddingScript.txt" copy the second line
![]()
and replace your name with that expression
![]()
- Save your script and close both editor windows.
- Back in PSP call up the AddName_se.pspscript
![]()
- And now the fun part: let the script run
![]()
If you have knowledge of scripting and script editing you are probably curious about the script. If you want to know more, follow the link.
![]()
~~~~~~~~~~~~~~~~
PSPX3 Tutorial Index
~~~~~~~~~~~~~~~~
This tutorial was written by Sigrid
exclusively for PSP Times Three
Any similarities to other tutorials is merely a coincidence.
~All rights reserved - May 2011~