Digita Script Tutorials - Structure of a Digita Script
DigitaScripts have a simple header, body, closing statement structure.
Header
A DigitaScript header is made up of the name, mode, menu, and label statements.
The name statement is a long name or phrase (31 characters max.) describing what the script does.
The mode statement specifies the operating mode the camera must be in to access the script file.
Currently supported modes are 0 (capture), 1 (review), and 2 (play).
The menu statement specifies the header under which the script will be posted.
The label statement is the name of the script as it appears in the menu.
Body
The body of the script contains the DigitaScript commands and statements you want the
camera to process.
Closing Statement
exitscript is the DigitaScript closing statement. After processing the exitscript statement, the camera returns to the menu display.
Note: Thru trial and error, it has been found that issuing a Wait command before the exitscript line
will prevent some strange screen problems occasionally encountered when running scripts. So the typical
closing section will often look like:
# This Wait() is a workaround to restore the screen to normal.
Wait(1)
exitscript
To next tutorial
Back to tutorial page
|