Chapter script?

Mr_Plant wrote on 4/27/2003, 7:20 AM
Hello.

I am just wondering if anyone has written (or could write), a small script to do a cool time saving thing...
In ULEAD MovieFactory 2 there is an option when you are making your DVD menu - chapters - to autmatically make a new chapter every X minutes - eg. 10 minutes.
This is a huge time saver on "quick made dvd's" for example. I do not write scripts myself or even know if it is possible to do this in DVD Architect or Vegas - anyone know? Thanks.

Steve McDonald.

Comments

jetdv wrote on 4/28/2003, 10:09 AM
Here is a script that will place markers at a set interval on the Vegas timeline. When you render the MPEG2 file, make sure the "save markers" option is checked. When loaded in DVDA, the markers will automatically be available. PLEASE NOTE: The markers will ONLY work with DVD Architect!!!


/**
* This script will add markers at the specified interval
* Written By: Edward Troxel
* www.jetdv.com/tts
* Modified: 04/28/2003
**/

import System;
import System.IO;
import System.Windows.Forms;
import SonicFoundry.Vegas;

//Change this value to be the desired interval
//Format: hh:mm:ss:ff (hours:minutes:seconds:frames)
var Interval = "00:05:00:00";


try {
var myMarker : Marker;
var IncTime : Timecode = new Timecode(Interval);
var CurrTime : Timecode = IncTime;
var EndTime : Timecode = Vegas.Project.Length;

while (CurrTime < EndTime) {
//Put a marker at the interval point
myMarker = new Marker(CurrTime);
Vegas.Project.Markers.Add(myMarker);
CurrTime = CurrTime + IncTime;
}



} catch (e) {
MessageBox.Show(e);
}
Mr_Plant wrote on 4/28/2003, 8:25 PM
Thats is fantastic!!! I am about to test your script out. Many thanks for your work - exactly what I was needing. Hope others find it usefull too.

Regards,

Steve McDonald.