Tutorial: Page (1) of 5 - 05/17/04 Email this story to a friend. email article Print this page (Article printing at MyDmn.com).print page facebook
DVD Studio Pro Scripting Project 1: Creating a 'last viewed' button By Dave Nagel For most, scripting in DVD Studio Pro is a complete mystery. It's not that it's complex by any means; it's just that there's a dearth of accessible documentation and a lack of real-world examples to provide a reference point for getting started. Nevertheless, scripting can be an essential part of your DVD presentation and can also save you hours of repetitive, redundant work. In short, if you create DVDs, you ought to know scripting.

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."




Page: 1 2 3 4 5 Next Page


Related Sites: Creative Mac ,   Digital Producer ,   Audio Video Producer ,   BN - Broadcast Newsroom ,   Corporate Media News ,   Digital Post Production ,   DVD Creation ,   Presentation Master ,   Oceania ,   MacDVDPro ,   BN - NAB ,   BN - Software
Related Newsletter: DMN Newsletter ,   CMN Newsletter ,   Timeline Newsletter ,   Mac Alert Newsletter ,   KNews Newsletter ,   Digital Media Net ,   DVD Viewpoint ,   DMNForums ,   Tutorial Finder
To Comment on This Article, Click HERE

Most Recent Reader Comments:
  • DVD Studio Pro Scripting by DMN Editorial at Aug. 04, 2004 3:29 am gmt (Rec'd 4)

    Click Here To Read All Posts
    Must be Registered to Respond (Free Registration!!!, CLICK HERE)

  • DMO TEXT LINKS
    (Click here to place a textlink on this site)

    AV-HS450 16+ Input HD/SD Switcher w/ dual screen MultiViewer
    This 16+ input switcher is the best value in its class.
    Its exclusive dual screen MultiViewer lets you view up to 20 windows on just two displays.
    CLICK HERE!!!

    Keep your camera rolling with Sony Mobile Storage for XDCAM EX Camcorders.
    Offload SxS memory cards onto 240GB HDD removable cartridges and accelerate your workflow on the go.
    Click Here!!!


    apple desktop
    iMac All-In-One Desktop (3.06GHz Intel Core 2 Duo, 4GB DDR2, 500GB, DVD+-RW DL, Mac OS X v10.5 Snow Leopard, 21.5" LCD)
    By Apple, start from $ 1169.00
    iMac All-In-One Desktop (3.06GHz Intel Core 2 Duo, 4GB DDR2, 1TB, DVD+-RW DL, Mac OS X v10.5 Snow Leopard, 27" LCD)
    By Apple, start from $ 1699.00
    Mac mini Desktop (2.66GHz Intel Core 2 Duo, 2GB DDR2, 160GB, DVD+-RW DL, Mac OS X v10.6 Snow Leopard)
    By Apple, start from $ 579.99
    iMac Intel Core 2 Duo 20" Desktop (2.66GHz Intel Core 2 Duo, 2GB DDR2, 320GB, DVD±RW DL, Macintosh OS X 10.5 Leopard, 20" LCD)
    By Apple, start from $ 1199.00
    Mac Pro Desktop (2.66GHz Intel Core 2 Quad, 3GB DDR3, 640GB HDD, DVDRW DL, Mac OS X v10.5 Leopard)
    By Apple, start from $ 2299.00
    Mac Pro Desktop (2.66GHz Intel Xeon 8-Core, 6GB DDR3, 640GB HDD, DVDRW DL, Mac OS X v10.5 Leopard)
    By Apple, start from $ 3077.74
    HOT THREADS on DMN Forums
    Dexim P-Flip Power Play Dock for iPhone/iPod touch
    polymer battery all in one neat device. Plug the P-Flip into your computer to charge its battery, then plug your iPhone into the P-Flip, and it charges the iPhone battery. Read More
    Apple Intros iPad
    After years of hype, Apple, Inc. today introduced the iPad, a portable computing device that looks like a big iPhone. Introduced today by Apple CEO Steve Jobs, the iPad features a touchscreen keypad, wireless capability, the capability to run all iPhone applications, all in a form factor that fits in between an iPhone and a MacBook. With the iPad, you can play movies, load maps, view photos, update your calendar, basically do the same things as on an iPhone, and more. Read More
    HDTV Buyer's Guidelines
    When it comes to choosing between Plasma and LCD, it's important to shop in the mindset that one high-def TV is not necessarily better than another - rather, it's a question of which one is right for you. That said, it can be a tough call to make when all that meets the eye are sleek screens and vibrant pictures - are Plasmas and LCDs really that different? Read More
    Tritton AX 180 universal gaming headset
    The Tritton AX 180 universal gaming headset is designed to work with the three major gaming platforms (Wii, xBox 360, and Sony PlayStation 3, via analog inputs), but also with both Macintosh and Windows based computers. Read More
    @ Copyright, 2010 Digital Media Online, All Rights Reserved