|Page (1) of 5 - 05/17/04||email article||print page|
DVD Studio Pro ScriptingProject 1: Creating a 'last viewed' button
With this in mind, the idea for this new series of articles on Apple's DVD Studio Pro is to provide you with project-specific examples of DVD scripts in action. There are, of course, many ways to perform any function in DVD Studio Pro, and these examples may not be the most efficient. But they should not only show you how to get the job done, but also get you thinking about how to extend the functionality of what you've just learned.
For our first project in this series, we'll be creating a fairly simple set of scripts that will enable you to have a "Play Previous" button in your presentation. In other words, no matter where you are in the DVD, you can click this button to play the clip you just viewed, without having to create separate buttons for each clip and multiple menus to accommodate this kind of function. It's just one reusable button that "remembers" the last-played track.
Our presentation in this example will include three tracks. (Obviously the benefits of using scripts like these are more significant when you have a whole mess of tracks to work with. But three will suffice to show you what's going on.) It will also have one "View Previous" button. And it will include four little scripts: one for each track and one for the button. You can use your own button or download my custom shape here (80 KB, Stuffit archive).
Scripting the tracks
To begin, we're first going to create the scripts for our individual tracks. These scripts simply set a value when the track is played, which will enable our "View Previous" button to know which track it should play when it's clicked. Here's how it works.
1. Choose Project > Add to Project > Script.
2. Switch over to your Script tab, and you should see your script there with one command listed (labeled "Nop").
3. Click on the command in the Script tab, which will call up that command's properties in the Inspector palette.
4. What we're going to do now is switch that "Nop" command to "Set GPRM."
Related Keywords:apple dvd studio pro, dvdsp, scripting, button
Source:Digital Media Online. All Rights Reserved