 |
| Search |
|
|

|
 |
DVDSP Scripting
This DVD Is a simple Menu plus four Tracks, with a special Play All Segments function added.
Making a Play All involves three things -
1 - Creating a way to activate the function (usually a BUTTON)
2 - Creating some way to TEST for the function
3 - Creating some way to TURN OFF the function -
Here's how - We'll use a simple One Menu Four Tracks layout
Author the MENU and TRACKS as normal, to begin with; add a PLAY ALL button to the menu;
Each TRACK, once selected from a button, will play and then return to Button #1 on the menu.
(If you want them to return to the button that selected them, set "Default Button" to "Not Set"
To play all segments, select the PLAY ALL button, which sets the variable PlayAllFLag to 1.
It does this by JUMP-ing to the Play All Script; this script sets a variable you have selected
to HOLD the PlayAllFlag (in this case, we used Variable "A", and renamed it "P[layAllFlag"
It sets the variable to 1, using an ASSIGNMENT STATEMENT, then issues a PLAY TRACK
Command to play the First of your Tracks ("SEG 1" in this demo).
When each TRACK finishes playing, it jumps to a "Test" script at its finish, instead of jumping directly to the Menu.
Each Test script checks if the variable named “PlayAllFlag”=1, using an "If...Then" conditional test
'if PlayAllFlag==1 then play Track "NextTrackName" ' - meaning it navigates to the next track in the sequence.
If 1, it will play the next TRACK, otherwise it returns back to menu. "Play Menu 'Main Menu' ".
After segment 4, the Play All end script resets the flag value to zero , and returns to the Menu.
To understand this script, look into the script text for Test 1 Test 2 or Test 3.
Note especially the “If…then” test which advances to the next Track, or the Play Menu “Main Menu” which goes back.
 |
| A Play All Script Layout |
You'll use this technique a lot... have fun! Bruce
PS If you are interested in more on this topic, Pro Pack 2 has a lot of scripting commands
explained, scripted, and functioning.
© Copyright 2002-2006 by Bruce Nazarian and Recipe4DVD.com - All Rights Reserved
|
|
 |
DVDSP Scripting
Latest Headlines
|

|