Setting up scripting
Before you start create, edit, run, or delete scripts, you need to
1 Select the scripts home directory, refer to "Scripts Home";
2 And display the scripting toolbar (optional, but very helpful).
To display the scripting toolbar
Like the paint toolbar, you can choose to show it on an as-needed basis or not to show it on an as-needed basis. To display the scripting toolbar on an as-needed basis, select Toolbars > Scripting Toolbar (Figure 1) MIPAV.
The scripting toolbar immediately appears beneath the VOI toolbar or, if the Paint toolbar is also displayed, immediately below the Paint toolbar. See Figure 2.
Scripts Home
The scripts home is the directory where you store scripts, and from which you run them. After you select a scripts home, the name of one of the scripts (which are ordered alphabetically) in that directory appears after Current Script on the scripting toolbar (Figure 3). If there is more than one script in the directory, Current Script becomes a list box from which you can select the script to run.
To set up Scripts Home
1 Start MIPAV. The initial MIPAV window opens.
2 Open an image. The expanded MIPAV window appears.
3 Select Toolbars > Scripting Toolbar. The scripting toolbar appears.
A dimmed rectangle appears immediately following the words Current Script in the scripting toolbar.
Refresh the script listing
| |
Run the selected script
| |
4 Click Scripts Directory... The Choose Directory dialog box (Figure 4) appears.
5 Select a directory in which to store your scripts.
6 Click Open. The directory opens and the Choose Directory dialog box closes.
After you've selected a scripts home and run a script for the first time, Current Script becomes a list box that shows the name of a script in the scripts home directory (Figure 3). After creating more scripts, you can select the one you want to run from Current Script.