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

Scripting System Streams in DVD Studio Pro

Part 1: Enabling and disabling subtitles with an optional resume function
Script 2: disabling subtitles
Our script for disabling subtitles is almost identical to the one for enabling them. So rather than starting from scratch, we'll just duplicate the first script and make a little change to it. To duplicate it, just right-click or Control-click on the first script in the Outline tab, and choose "Duplicate" from the list of available options. Then, to avoid confusion, rename the new script "Subtitles Off."

Select the second script. Then, in the Script Editor window, click on the "Set System Stream" command. In the Inspector palette, uncheck the checkbox labeled "View." This is what turns off subtitles. (Notice, in the Script Editor, the last word in the first line changes to "Off.")

And that's it for the second script. You can now connect this script to your "Turn Subtitles Off" button.

Script 3: the optional preparatory script
Now, finally, we need to create a third script, this one from scratch (Project > Add to Project > Script). This final script will be our "resume enabler." Without it, the resume function we place in our previous two scripts won't work. So it's pretty important. This script will do two things.

1. Set a value of 1 in GPRM 7.
2. Jump to our track.

In this way, when the viewer watches the track, GPRM 7 will be set to 1, and our resume function can work. But if they haven't watched the track, GPRM 7 will remain at 0, and our resume function will be skipped (without freezing the player).

So this script will work as follows.

1. For the first command, change it to "Set GPRM." Set the Operation to "Mov," the Source Type to "Immediate," the Value to "1" and the Target to "GPRM 7." (See the screen shot below.)

2. Now add a second command, and this time set it to "Jump." And set the Target to the track you want the viewer to see. In my case, that will be "Track 1."

And that's it for this script. You can now connect it to the button that the viewer would click to get to your movie that contains the subtitles.

You now have a fully functional subtitle enabler/disabler with a resume function. If you have any further questions, be sure to visit me in the Apple DVD Studio Pro forum by clicking here.

Page: Prev Page 1 2

Related Keywords:apple dvd studio pro, scripting, scripts, subtitles, resume, subtitle stream


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