Setting a gprm’s mode, Scripting examples – Apple DVD Studio Pro 4 User Manual

Page 517

Advertising
background image

3

Enter a name for the file, select its destination, and click Export.

A file is created using the name you entered plus a “.dspPartition” extension.

To import a GPRM configuration

1

Do one of the following:

• Click the Script Inspector’s Import button.

• Click the Import button in the Advanced tab of the Disc Inspector.

The Import dialog opens.

2

Select the file to import, then click Import.

Note: To avoid configuration conflicts, you should import the GPRM configuration before
creating any scripts.

Setting a GPRM’s Mode

Each 16-bit GPRM register can be set to function as a memory register or as a decrementing
counter.

Note: By default, all GPRM registers, including those less than 16-bits, are set to be memory
registers.

Register: A value written to it remains there until a new value is written or the disc is

ejected.

Counter: As a counter, the value counts up once per second, starting at the GPRM’s

current value. You can pause the count by changing the mode back to register.

You set a GPRM’s mode using the GPRM Mode command as part of a script. Once you
have set a GPRM’s mode, it stays that way until it is changed or the disc is ejected.

Scripting Examples

By their nature, scripts tend to be very project-specific. While the function of a particular
script might apply to a wide variety of projects, the specific tracks, streams, and menus
it works with vary.

The following examples provide you with step-by-step instructions that can help you
understand the process of creating a script, from the initial concept to the final product.
These scripts show just one way to accomplish their tasks—alternate ways to accomplish
the same results often exist.

517

Chapter 20

Creating Scripts

Advertising