V5 To V6 Script Conversion

JimMSG wrote on 6/30/2005, 8:31 AM
I recently downloaded on Ed Troxel's scripts from the Cow to automatically place markers at a set interval. I will admit, I haven't a clue about scripts and was expecting a box to pop up and ask me what interval I wanted. Instead I got an error message regarding an undefined variable, or something like that.

I suspect if I need a different interval that is already in the script I have to alter that before I run it, and I think I can do that with notepad. I also suspect before I can use this script, I have to convert it to work with V6. Can someone tell me how to do that, or point me to a V6 automatic marker placement script?

Comments

JohnnyRoy wrote on 6/30/2005, 11:56 AM
There is nothing to be done to use V5 scripts in V6. There were very few changes to the script API between these two releases. If the script you are referring to is the same one that’s on the VASST web site, it is actually a Vegas 4 script that need to have one line changed that says import SonicFoundry.Vegas; to import Sony.Vegas;. There is a line just below that which sbays var Interval = "00:05:00:00"; (which is 5 minutes) Just change that to the duration you want (hh:mm:ss:ff).

~jr
JimMSG wrote on 6/30/2005, 2:35 PM
I don't know if it is the same one as at VASST. I'll have to go look. The one I got at the cow returns a compilation error in line 16 - variable "Marker" has not been declared.
jetdv wrote on 6/30/2005, 7:36 PM
The script you're referring to was written for Vegas 4. Open it up in Notepad and look for "SonicFoundry". Change those to "Sony" and you should be done.
JimMSG wrote on 6/30/2005, 9:10 PM
That seems to have done the trick. Thanks.