Jumping to a menu’s loop point, Randomly playing tracks, Jumping to a – Apple DVD Studio Pro 4 User Manual

Page 518: Menu’s loop point

Advertising
background image

Note: These examples use menu and track names that are fictitious. You can create these
elements and add suitable assets to them, or adapt these examples to your existing assets.
You can even create these as empty elements, with no assets assigned. It is the names
of the elements that get used in these script examples, not the actual assets. Additionally,
these examples assume you have not partitioned the GPRMs.

Jumping to a Menu’s Loop Point

For this script, the project has a motion menu that has a loop point set, and you want to
be able to have other elements jump directly to the loop point, bypassing the first part
of the menu’s video.

For this script, you’ll call the menu Main Menu.

To create a Jump to Loop Point script

1

Do one of the following:

• Choose Project > Add to Project > Script, or press Command–Single Quote (’).

• Click Add Script in the toolbar.

2

Double-click the new script in the Outline or Graphical tab.

The Script Editor opens and the Script Inspector appears.

3

In the Inspector, name the script

Jump to Loop Point

.

4

In the Script Editor, select the first command line (Nop).

The Script Command Inspector appears.

5

In the Script Command Inspector, choose Jump as the command.

6

Choose Menus > Main Menu > [Menu] from the Jump To pop-up menu.

7

Select the Start At Loop Point checkbox.

You can use this script anyplace where you might normally jump to the Main Menu. For
example, you could set a track’s End Jump to run this script—when the track finishes
playing, it jumps to the Main Menu’s loop point.

Randomly Playing Tracks

For this script, the project has four tracks, and you want a script to randomly choose one
to play once a menu times out (has been inactive for a set amount of time).

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

To create a Random Play script

1

Do one of the following:

• Choose Project > Add to Project > Script, or press Command–Single Quote (’).

• Click Add Script in the toolbar.

2

Double-click the new script in the Outline or Graphical tab.

518

Chapter 20

Creating Scripts

Advertising