Playing all tracks, The play all script – Apple DVD Studio Pro 4 User Manual

Page 520

Advertising
background image

11

Add three additional jump command lines—one for each of the other three fictitious
tracks. The only differences are the Jump To settings which need to match each track
(Tracks and Stories > Beach > Marker 1; Tracks and Stories > Trail > Marker 1; and Tracks
and Stories > Shopping > Marker 1) and the immediate values in the compare function’s
“with value” field (use 2 for the Beach track, 3 for the Trail track, and 4 for the Shopping
track).

12

You need to configure the menu’s timeout setting by selecting the menu in the Outline
or Graphical tab, then clicking the General tab in the Menu Inspector. Choose Timeout
from the At End pop-up menu and enter a value (in seconds) for the timeout. Choose
this script (Random Play) from the Action pop-up menu.

Each time the menu sits idle for the specified amount of time, the script starts, generates
a random number, and then plays one of the four tracks. Once the track ends, it jumps
to the element specified by its End Jump setting.

Playing All Tracks

For this script, the project has four tracks, each with a button on the main menu to start
it playing. You want to add a Play All button that will play all four tracks in order, returning
to the main menu once they have finished. In this case, you will create five scripts—one
that starts the Play All progress and one for each track that determines whether a Play
All function is active.

The Play All script places a value in a GPRM that indicates to the other scripts that a Play
All function is in process. It then jumps to the first track and starts it playing.

The other scripts are linked to each track’s End Jump settings. These scripts test to see if
the Play All function is active. If it is, the script jumps to the next track. If not, the script
jumps back to the main menu.

For this script, you’ll call the tracks “Ocean,” “Beach,” “Trail,” and “Shopping.”

The Play All Script

This is the script you will link to the main menu’s Play All button.

520

Chapter 20

Creating Scripts

Advertising