PSP XI Tips & Tricks
101 - 120
Previous Page
~
Index
~
Next Page
For example, if the title of the tutorial is Mosaic Tile Background, after saving the tutorial to your hard drive, the two parts will look like this (highlighted in green):
This method gives you a tremendous amount of control over the position, thickness, blur, and opacity of your drop and perspective shadows. It's a great alternative to the Drop Shadow effect, and is much easier to use than the Eye Candy perspective shadows.
Use a contrasting color for interesting extrusions. Check the Shadow on new layer check box if you want to manipulate the shadows.
To apply the repeated drop shadows without revisiting the Drop Shadow dialog each time, click the REPEAT icon Here's some gradient text with an extrusion out to the left. For this one, I used a Vertical Offset of 0 and a Horizontal Offset of 1, repeating the shadow five times:
Depending on your settings in the Batch Process dialog, this command can also be used to make copies of files or convert files from one format to another.
This code causes a Message Box to pop up - the text in the Message Box is highlighted in yellow above. The 'true' at the end of the line highlighted in pink makes this the foreground material. The name given to this material, Material1 (which will be used later in the script) is highlighted in blue.
Similar code can be inserted for obtaining the background material:
The text that will appear in the message box is highlighted in yellow. Note the line highlighted in pink - the 'false' at the end of this line ensures this will be the background material. Again, the name given to this material, Material2, is highlighted in blue.
In the code where the material is to be used, insert the name you gave the color - highlighted in blue above. In the following example for the Flood Fill tool, the foreground material, or Material1, will be used - it, too, is highlighted in blue:
If you need more than two different materials in your script, just insert the same Message Box code where you want to ask for more input, using different names (blue highlight) for the results.
The easiest way to prevent this error is to code 'SelectPoint': None, in the Mover step - this way, it will not matter where the image is on the layer, because the entire layer will be moved. This is equivalent to holding down the SHIFT key when using the Move tool to move a layer, which always moves the active layer, no matter where you click with the Move tool.
The user can do any of the following:
I have found this command so handy when debugging and testing scripts that I have placed an icon for it on my Script toolbar, so it's right there handy when I need it.
where xxxxxxx is the name of the script. If there was any problem encountered during the execution of the script, that message will say
One of the powerful and convenient features of the History palette is that it allows you to selectively choose steps applied to an image and save those steps as a Quickscript. You can then apply the Quickscript to another image (or to the current image). The Quickscript is saved to a file called QuickScriptTemp.PspScript, and resides in the Scripts-Trusted folder. If the History palette is wide enough, the Save Quickscript button ( The History palette also allows the user to save selected commands to the clipboard to be pasted into scripts. To use this option, select the steps or actions you wish to save to the clipboard, and right-click to activate the History Context Menu. Choose Copy to Clipboard to copy the saved commands to the clipboard. These commands can then be pasted into a script as needed, or used to build a "snippets" library of commands for future use.
In PSP XI, the History Context Menu has lost many of its entries:
The most probable reason most of these options were dropped from the PSP XI History Context Menu is that they are available as icons at the top of the History palette. Most of these commands can be returned to the History Context Menu, if desired, using Customize. However, the "Save to script" option is not available as an icon, nor is it listed as a command in Customize. To return this command to the History Context Menu:
The version information is contained in a dictionary that is in this format:
Therefore, to extract the version information, use the MajorVersion key, like this:
Then use the "if-else" structure to execute the appropriate code. An example would be the Text command in PSP 8 that was replaced by the TextEx command in PSP 9:
If it is necessary to identify the version down to the minor and micro versions, the VersionString key can be used instead:
102 Saving A Tutorial To Your Hard Drive

103 Drop Shadows and Perspective Shadows The Easy Way - With No Plug-Ins
104 Adding Extrusions to Text or Objects
To see the extrusion fall down and to the right, set both Horizontal and Vertical Offsets to 1.

To see the extrusion fall up and to the right, set the Vertical Offset to -1 (negative 1) and the Horizontal Offset to 1.

To see the extrusion fall down and to the left, set the Vertical Offset to 1 and the Horizontal Offset to -1 (negative 1) .

To see the extrusion fall up and to the left, set both Vertical and Horizontal Offsets to -1 (negative 1).

. I have this icon on my standard toolbar for easy access. Or use the REPEAT keyboard shortcut, CTRL + Y.

105 Scripting - What's It All About?
106 Running Scripts in Batch Mode
107 Batch Rename Process
108 Gridmaker Script
109 Prompting the User for Materials In A Script



Note: The code shown above will work in all versions of Paint Shop Pro. PSP 9 introduced a simpler way of coding the 'true' and 'false' conditions, but as there are still many using PSP 8, I recommend making all scripting code PSP 8-compatible, as much as possible.
110 Move Errors in Scripts
111 Using the Single Step Command

Note: Paint Shop Pro remains in Script Single Step mode until you toggle off this command.
112 Script Termination Messages
Script 'xxxxxxx' has completed successfully.
Script 'xxxxxxx' has completed with an error.
113 Removing Undone Commands from Scripts
Note: Be aware that when you UNcheck this box, the undone commands will be active (not undone) when the script is executed. Each of them will be executed, followed immediately by the Undo step that followed them when the script was recorded. Hence, leaving this box checked is probably the best option.
114 Using the History Palette To Create Scripts
) can be seen along the top of the palette. If it is not there, click on the "More Buttons" double arrow on the right edge of the palette to see additional options:

Note: Be aware that there is only one Quickscript; each time you select History palette commands and click the Save Quickscript button, the previously saved Quickscript is overwritten.


Note: In the SaveHistoryToScript step, replace the xxxxxxxx in the Filename parameter with the complete path name to the script where you want to save the selected actions - on my system, I use r'C:\PSP\PSPXI Files\Scripts-Trusted\FromSaveHistoryToScript.PspScript'. In addition, the other parameters within that command, such as the Author, Copyright, and Description parameters, should be replaced with your information. Finally, if you want the Save As dialog to be presented each time you choose this option, change the Default in the ExecutionMode parameter to Interactive.
115 Starting PSP With A Custom Workspace
116 Removing Dark Edges From An Image
Note: Note that the pixels that are "pushed into oblivion" are not really totally lost. They appear to be invisible because they have been pushed into the transparent area. However, these pixels can be recovered by unlocking transparency and unerasing.
117 Colorizing a Black and White Image
118 Determining Version of PSP That's Running From a Script
# GetVersionInfo
Version = App.Do(Environment, 'GetVersionInfo')
{'BuildType': u'Released', 'MinorVersion': 0, 'MajorVersion': 11, 'MicroVersion': 0, 'BuildNumber': u'20060728.00', 'VersionString': u'11.00', 'Program': u'Corel Paint Shop Pro Photo XI'}
Version['MajorVersion']
if Version['MajorVersion'] == 8:
# Text
App.Do( Environment, 'Text', {
.
.
.
else:
# Text
App.Do( Environment, 'TextEx', {
.
.
.
Version['VersionString']
If you have any suggestions for additions to this list, please EMAIL ME.
About Me ~
Home ~
Email
Please do not post this page, in whole or in part, in any other location.
All graphics and content © 2002-present by SuzShook