Home  >  Tutorials  >   Beginners' Classes  >
Scripts and More
E-mail this tutorial to a friend Email to a Friend

Scripts and More
Created by: Zonia

 

In this lesson we will use scripts to enhance a photo and add a caption. We will also create a frame for the photo using the Add Borders command, the Dropper tool, and the Inner Bevel effect.

 
Download File Download File
The zip file on the left contains the photo I used for this tutorial (or you can of course use a photo of your own).
 
Open Image Open (File || Open) the "/tutorial/html/beginclass/scooter.jpg" file from your downloaded or another photo of your choice. Duplicate it (Window || Duplicate or Shift+D) and close the original.
 

Look at the toolbar area and see if the Photo and Script toolbars are on. You can also go to View || Toolbars or right-click on one of the toolbars and highlight Toolbars to see if they are on. If not just click on the one you want to turn on in the menu.

Make sure the Script Output palette is on, if not go to View || Palettes || Script Output (F3) to turn it on.

Remember to turn toolbars and palettes on/off you click on them in the View menu.

The reason I had you turn on both the Photo and Script toolbars is because the script we are going to run to enhance the photo can be found on both toolbars. The Photo toolbar contains various tools for enhancing photos and the Script toolbar contains various tools for running, editing, recording and saving scripts.

 

Scripts contain a set of actions that will be performed. PSP 8 comes with several great scripts such as the two we are going to use. You can also make your own and download scripts others have made.

It is very important to remember when downloading scripts that scripting is a program language and therefore can contain harmful code. Jasc has taken steps to prevent harmful code from being executed by providing Restricted and Trusted folders. It is best not to put any scripts you download into the Trusted folder!

Any scripts located outside of the Trusted folder are run in restricted mode which means potentially harmful commands will not be executed. This includes presets, swatches, and print templates (which are really scripts) as well.

Don't be afraid of any scripts, presets, swatches, and print templates offered by other people though because there are some great ones available. Just put them where they go and you should be fine. The Brushtip_name.pspscript files go in the Brushes folder, the Preset_type_name.pspscript go in the Preset folder, Swatch_name.pspscript go in the Swatches folder, MIPTemplate_name.pspscript go in the Templates folder, and all other .pspscript files you download go in the Restricted folder.

Now that you know how to protect yourself let's get back to enhancing the photo.

 

Jasc has made it easy for us by linking the script we are going to run to the Photo toolbar so we are going to run it from there. Click on the Enhance Photo button, then choose "One Step Photo Fix" from the drop-down menu.

Look at the items on the Enhance Photo menu, then look at the Script Output palette: You will see that the script executed all the commands on the menu using the default settings. You could have clicked on each option separately and clicked on the Reset to Default button on each one to produce the same effect.

The same script can also be run from the Script toolbar. We will cover the Script toolbar later in this lesson. You can turn off the Photo toolbar if you wish, we are done with it.

 
  Let's create a frame for our photo. First we want to save an alpha selection of our image so we can save our frame later. Go to Selections || Select All (Ctrl+A), then to Selections || Load/Save Selection || Save Selection To Alpha Channel. Name the selection "Photo". Deselect (Selections || Select None or Ctrl+D).
 

Dropper Tool

Click on your Dropper tool: Sample size = 1 Pixel.

Put it over a color you like in your image and left-click to make it the Foreground Color. Put the Dropper over a different color in your image and right-click to make it the Background Color. I chose a light brown (#94755B) and a dark brown (#5A411E) from the foot area. These are the colors we are going to use for the frame.

 






Go to Image || Add Borders. Make sure Pixels and Symmetric are selected. Type "10" in one of the white boxes; since you have Symmetric checked the other three white boxes will be changed to 10 as well.

Still in the Add Borders dialog, right-click on the Color box. Beside the Other button you will see two color boxes representing your Foreground and Background colors; click on one of them. Click on OK.

 

Magic Wand Tool  Preset: Reset to Default Option

Click on the Magic Wand tool and reset to default. Then change:
– Tolerance = 0
Click inside the border you just added to select it.

In case a part of your image is selected as well, go to Selections || Load/Save Selection || Load Selection From Alpha Channel. Choose the "Photo" selection and click on Load. Then go to Selections || Invert.

 
  Go to Effects || 3D Effects || Inner Bevel. Choose "Frame" from the Preset drop-down list. Click on OK and deselect (Selections || Select None or Ctrl+D).
 
  Go to Image || Add Borders, make sure Pixels and Symmetric are selected. Type "5" in one of the white boxes. Right-click on the Color box and choose the other color this time. Click on OK.
 

Magic Wand Tool
Your Magic Wand tool should still be selected. Click inside the border you just added to select it. Go to Effects || 3D Effects || Inner Bevel. Choose "Frame" from the Preset drop-down list. Click on OK and deselect (Selections || Select None or Ctrl+D).
 
  Go to Image || Add Borders, make sure Pixels and Symmetric are selected. Type "10" in one of the white boxes. Right-click on the Color box and change back to the first color. Click on OK.
 

Magic Wand Tool
With your Magic Wand tool click inside the border you just added to select it. Go to Effects || 3D Effects || Inner Bevel. Choose "Frame" from the Preset drop-down list. Click on OK and deselect (Selections || Select None or Ctrl+D).
 
Saving the Picture Frame:
(Optional: Only do the steps in this paragraph if you wish to save your frame.)
Duplicate your image (Window || Duplicate or Shift+D). Go to Layers || Promote Background Layer, then to Selections || Load/Save Selection || Load Selection From Alpha Channel. Choose the "Photo" selection and click on Load. Hit the Delete key to erase the photo.
Go to File || Export || Picture Frame, type in what you want to name your frame, and click on Save. Close the frame image. When asked if you want to save changes click on No because your frame has already been saved.
You can add your frame to any image now by going to Image || Picture Frame and choosing it from the list. (End of optional steps.)
 
  Now back to the Script toolbar. You can also find the Script options by going to File || Script. It is easier to use the toolbar though. Right-click into the Script Output palette and choose "Clear" from the pop-up menu.
 

Run Selected Script
In the Script toolbar, choose the "Simple Caption" option from the drop-down list and click on the Run button. An Enter Image Caption dialog will open, just type in the caption you want. I put "Scooter" in because that is this dog's name. Click on OK. Watch the Script Output palette and you will see PSP executing a series of actions.
 
  I don't like the color it chose for the background and I want the text to stand out more, so let's make some changes.
 

Flood Fill Tool  Preset: Reset to Default Option
Click on the "Page Surface" layer in the Layer palette. Click on your Flood Fill tool and reset to default. In the Tool Options palette, set the Match Mode = None. Flood-fill with the color you used for the middle of the frame. Go to Effects || Texture Effects || Texture and choose the "Pool Bottom" preset. Right-click on the Color box and choose White. Click on OK.
 

Click on the Plus sign in front of the "Caption Text" layer in the Layer palette to expand the layers. Double-click on the text layer (has the Text tool icon followed by the caption you typed). The Text dialog will open with the caption selected (if you want to change the words type in the new words and select them). While the text was selected I changed the Font Size to 20 and clicked on the B (Bold) button under Font Style on the Tool Options palette. Make any changes to the text you want. Change the colors in the Materials palette if you want to change the color of the text.

That's it for creating the image. Save (File || Save).

 

Start Script Recording
Start Script Recording
Pause Script Recording
Pause Script Recording

Cancel Script Recording
Cancel Script Recording

Save Script Recording
Save Script Recording

There are several buttons on the Script toolbar. I want to draw your attention to the recording section of this toolbar. There are four buttons here: Start Script Recording, Pause Script Recording, Cancel Script Recording, and Save Script Recording. These are the buttons you can use to create your own scripts.

To make a script click on the Start Script Recording button and perform the actions you want the script to do. When you have completed all the actions click on the Save Script Recording button. Type in what you want to name your script and click on Save. The script will be saved to the Restricted folder. The Pause Script Recording button pauses recording and the Cancel Script Recording button stops recording without saving.

 

Scripts are great time savers. If you find yourself repeating the same actions repeatedly then consider making yourself a script.

That's it! I hope you enjoyed this lesson. In the next lesson we will be covering Canvas Size, Cropping, Resizing, and Feathering.