|Page (2) of 2 - 07/26/05||email article||print page|
GPRM Partitions in DVD Studio Pro 4, Part 2Creating partitions and using them in scripts
2. For the second script, I'll do the same thing, but set the Source Value to "1."
3. The third script will set the angle to angle 1. So I'll set the Set GPRM command to a Source Type of "Immediate" and the Source Value to "0." For the target, I'll set it to the partition I called "angle."
4. The fourth script will be identical to the third script, but the Source Value will be "1."
5. The fifth script sets my subtitle stream to Subtitle Stream 1. So I'll set the Set GPRM command to a Source Type of "Immediate" with a Source Value of "0." The Target will be set to the GPRM partition I named "subtitle."
6. And, finally, the sixth script will be identical to the fifth, but it will use a Source Value of "1."
Now my basic preference scripts are set up, and I can link them to their respective buttons. If the user wants basic audio, he or she will click button 1, which activates Script 1. If the person wants two watch the alternate video angle, , he or she will press button 3, which will activate Script 3. Et cetera, et cetera.
Now all that's left is to build a final script that will look at the values set in the GPRM partitions called "audio," "angle" and "subtitle" and determine the proper streams to play. After determining these, the script will jump to the movie. So create a new script. This script will have seven commands. The first six commands will be "Set System Stream," each with the Compare Command option selected. The final command is a Jump command, set to jump to the track in question.
Here's an overview of the commands in this final script.
1. Set System Stream to Audio Stream 1 if the value in the GPRM partition called "audio" is set to a value of 0. It looks like this.
2. Set System Stream to Audio Stream 2 if "audio" is set to 1.
3. Set System Stream to Angle 1 if "angle" is set to 0.
4. Set System Stream to Angle 2 if "angle" is set to 1.
5. Set System Stream to Subtitle Stream 1 if "subtitle" is set to 0.
6. Set System Stream to Subtitle Stream 2 if "subtitle" is set to 1.
7. Jump to "Dave's First Track."
And here's the whole thing.
Now I just connect this script to the "Play Movie" button in my menu. When the viewer chooses to play the movie, the script will search through all of the possible preferences the user could have set and determine the proper streams to play and then jump to the movie.
And that's all there is to it. If you have any further questions, be sure to visit me in DMN's DVD Studio Pro forum by clicking here.
Also be sure to check out the following articles for more information on scripting and general authoring topics on DVD Studio Pro versions 2 through 4.
DVD Studio Pro Scripting, Series 1
- Part 1: General scripting information
- Part 2: Creating an interactive quiz
- Part 3: Keeping track of time
- Part 4: Pausing and resuming a timer
- GPRM Partitions, Part 1
- Loop points in DVD Studio Pro 4
- Scripting dynamic chapter selections
- Scripting system streams, Part 3 (audio switching)
- Scripting system streams, Part 2 (audio menu)
- Scripting a dynamic 'play all' button
- Scripting system streams, Part 1 (subtitles)
- Scripting previous/next buttons for menu navigation
- VTS Allocation
- Switching System Streams with Buttons over Video
- DVDSP General Walkthrough
- Customizing Button States
- Highlights and Overlays
- Zoom Masks
- Customizing Masks
- Fixing color shift (for DVDSP 2.0)
- Motion Masks (custom patches)
- Remote Rollovers
- Setting Up DTS Playback on the Mac
- Creating Alpha Transitions, Part 1
- Quick Tip on Stories
- Alpha Transitions, Part 2
- Delaying Button Highlights
- Buttons over Video
- Media Storage
- Creating a "Play All" Button by Merging Tracks
- Display Conditions and Prescripts
- Bitrates in DVD Studio Pro
Related Keywords:dvd studio pro, gprm, gprm partition
Source:Digital Media Online. All Rights Reserved