Setting up scripting

From MIPAV
Revision as of 19:54, 15 February 2012 by Angelfish100 (Talk)

(diff) <previousrevision> | Latest revision (diff) | <nextrevision> (diff)
Jump to: navigation, search

Setting up scripting

Before you start create, edit, run, or delete scripts, you need to
1 Select the scripts home directory, refer to [MIPAV_Scripting.html#1263590 "Scripts Home" on page 439];
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 ([MIPAV_Scripting.html#1342422 Figure 272]) MIPAV.

Figure 272. Scripting Toolbar command on the Toolbar menu


{| align="center"

Script Toolbar.png



|}

The scripting toolbar immediately appears beneath the VOI toolbar or, if the Paint toolbar is also displayed, immediately below the Paint toolbar. See [MIPAV_Scripting.html#1316729 Figure 273].

Figure 273. The Scripting toolbar is highlighted


{| align="center"

Script ToolbarAppearance.png



|}


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 ([MIPAV_Scripting.html#1329779 Figure 274]). 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.
Figure 274. The Scripting toolbar


{| align="center"

Script Toolbar narrow.png



|- |


{| align="center"

| Script RefreshTheScriptListing.png

|}

|

Refresh the script listing

|- |


{| align="center"

| Script RunTheSelectedScript.png

|}

|

Run the selected script

|- |


{| align="center"

| Script StartRecordingScript.png

|}

|

Start recording a script
Â

|}