How to Edit a Script

Note: This Quick Guide is simply meant to give you some pointers from a layperson's view. To teach a programming language itself is far beyond the scope of a Quick Guide.

Step 1 - Open the Script to be edited

If it is not already open go to the View>Toolbars>Script

Edit Selected Script

 

Choose the script you want to edit from the drop down box then click the Edit selected Script icon. The script will open with this dialog box.
Script Editor
Here is where you can change information about the author, the copyright, the description, and the way the script is handled.

Step 2 - Edit the simple stuff first.

Script Commands

 

 

 

You will see each step made in making the script in a simplified form in the Script Commands dialog. Each has a drop down box where you can choose Default, Interactive, or Silent. Choose Interactive if you want the user to have some control. Open any image then click here to see an example with user control.

Highlighted Command

 

 

 

 

 

 

You can delete any duplicate commands from here, simply highlight the unwanted command and choose Delete. Double clicking on the command will run the command for you.

Step 3 - Text Editing

Text Editor Button

 

Clicking the Text Editor button will bring up the script in Notepad. Within Notepad you can make any minor or major changes to the text of the script.

Script In Notepad

Do not change the lines from JascApp import* unless you are an experienced programmer, but then if you were you would not be reading this Quick Guide. Notice the ' marks. Those need to stay intact as well. You may change the text that is enclosed in them such as Author etc. Leave the Host and Host Version intact as well.

Step 4 - Small Changes

Here are some examples of changes you could make.

Notice it says in the FileName Edge Brush 02, you could change that to any other picture frame in your Picture frames folder. Make certain that you get the spelling and the spacing exactly as it is in the folder. If you miss a space or error in spelling the script will not run.

Here the script says color (0,0,0), I would like the user to be able to choose the color. I would replace the (0,0,0,) with None as you see the others. PSP will then fill the image with the Foreground color. Make sure you put directions in the script for the user to choose the colors before running the script. If you want to change it to a specific color you will need to type in the RGB Values. To find the RGB values you can simply select the color you want in the Materials Palette then run the mouse over the color chip to get the values.

Highlighted here is the Point of the fill. When you are recording a script be mindful of where you place the Fill can, if you are working with a very large image and the user tries to apply the script to a small image the fill will not apply. You can edit the point to (0,0) or (1,1)

.

Once you have finished editing a script click the File menu on Notepad and choose Save As. Use the drop down dialog to choose All Files or the script will save as a text document. Name the script and save.

 

There is a small amount of the huge world of programming to get you started. Happy Scripting!

 

 

HOME
MASKS
TUTORIALS
LINKS
TUBES
GALLERY
MISC

 

 

Lost? Click here for a site map