Tutorial: Page (2) of 2 - 07/26/05 Email this story to a friend. email article Print this page (Article printing at MyDmn.com).print page facebook

GPRM Partitions in DVD Studio Pro 4, Part 2

Creating partitions and using them in scripts
Then I'll add a second command to Jump back to the set-up menu. (I'll assume you know how to add a Jump command, so I won't show it.)

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
DVD Studio Pro Scripting, Series 2
Other scripting articles
General design and authoring topics


Page: Prev Page 1 2


Related Keywords:dvd studio pro, gprm, gprm partition

HOT THREADS on DMN Forums

Our Privacy Policy --- @ Copyright, 2015 Digital Media Online, All Rights Reserved