I finally got around to uploading my scripts to the Sundance site. Several people have had problems cutting/pasting from my posts on this forum, and I figured that downloading from the Sundance site will avoid those problems. Here are the scripts available for download:
Add Regions To Events
This script adds regions for all events on the selected track. The script simply names the regions with numbers. Use View -> Edit Details and then select Show -> Regions. You can then quickly type in region names for all the newly created regions, if that is important. Also, if you didn't know this, you can create the names in any wordprocessor (or spreadsheet), and cut/paste them into the region name area.
I created this because the Batch GUI script, and several other scripts, act on regions, not on events.
Audit for event levels
This script finds all events where the opacity level has been set to a level only slightly less than 100%, or the audio level set to slightly less than 0dB. This usually is not intentional and results from accidentally moving the opacity or volume "line" (the line at the top of each event) while moving an event. Without this script, such an accident is very difficult to detect, and can result in long rendering times. You can edit the script to alter the threshold (e.g., most people would have no reason to set an event to 99% opacity, yet if you accidentally nudge this control, Vegas will re-render the video for that event). The script comes with the threshold set to 90% (i.e., if the level is set to 89% or lower, the script assumes you really meant to do it).
Audit for short blank gaps
This script finds short blank gaps or overlaps between events on the first selected track. The intent is to find those 1-2 frame gaps or overlaps that are all too easy to create in Vegas. You can change the script to increase or decrease the threshold used to detect gaps/overlaps (the default is set to three frames). Because of the problem of moving events in a large, multi-track project, the script merely inserts a marker at the beginning of each gap, and assigns a marker name that start with "***" so you can easily scan your project, and make the appropriate changes. The script does not actually move or alter any event.
Delete n frames from event
This script delete "n" frames from the start of an event, then moves remaining events on that track to the left by "n" frames. Thus, the video event will be shortened by "n" frames (default=6; edit the script to change). If the track beneath the video track contains audio, that audio event will also be shortened by the same number of frames. The script can be modified to delete at end of the event instead. You don't have to select the event to make this script work; you merely have to have a track selected, and make sure that the cursor is positioned over the event you want to trim.
Highlight selected fX Events
This script finds and highlights all video events to the right of the cursor if they contain the specified fX. Edit the script to define the fX you are looking for. I created this because Satish's excellent plugin that permits the use of Virtualdub filters does not re-initialize the settings of those filters when you save, and later re-open a project. I therefore have to find the events that have this filter attached, and manually fix things up. With hundreds of events, it was taking forever to find the events. Note that the script works only on the events to the right of the cursor, so once you find the first event that has the fX you are looking for, and make your changes, you just run the script again to find the next occurrence.
You have to edit the script to alter the fX you want to search for. I keep telling myself that I should add a dialog that gets loaded with all the fX available and lets you choose, but I haven't gotten around to it yet.
Markers at Media Change Points
This script adds markers at media transitions on the first selected track. A "media transition" happens when an event comes from a different file than the preceding event. The markers are labeled with the name of the media file. If a marker already exists, no new marker is created. I can't remember now why I created this, but it sure seemed useful at the time ...
Markers To Regions
This script converts markers to regions. The original markers are left intact. The script ignores all markers beyond the last event. This tries to duplicate a similar function found in Sound Forge. Lots of Vegas scripts operate on regions, but not markers. This provides a very quick way to change from markers to regions, just like you can do in Sound Forge.
PlaySound
This script plays a sound from within a Vegas script. Nothing earth-shattering, but several people asked how to do this.
Time Lapse (1 Frame per Event)
This script creates true time lapse movies from the multiple one-second clips that many camcorders record when put in "time-lapse" mode. It assumes that each one-second capture is in a separate event. It saves only the last frame from each event on the selected video track, and deletes everything else, including the resulting gaps between events. Only the first selected track is affected.
The intent of this script is that once you have one frame from each one second capture, you can use Vegas' velocity envelope to create faster or slower versions of your time lapse. The results of this script are excellent compared to the silly one second capture done by camcorders (necessitated by the inability of simple videotape mechanisms to be started and stopped for just one frame). Of course, if you want really great time lapse from a video camera, download SCLive, connect your laptop, and get perfect time lapse at any rate you can think of (hours, days, weeks, months ...).
This version fixes some bugs that I found in the version that I originally posted on this forum.
Hope these help someone, somewhere, sometime, someway ... oh, you get the idea.
Add Regions To Events
This script adds regions for all events on the selected track. The script simply names the regions with numbers. Use View -> Edit Details and then select Show -> Regions. You can then quickly type in region names for all the newly created regions, if that is important. Also, if you didn't know this, you can create the names in any wordprocessor (or spreadsheet), and cut/paste them into the region name area.
I created this because the Batch GUI script, and several other scripts, act on regions, not on events.
Audit for event levels
This script finds all events where the opacity level has been set to a level only slightly less than 100%, or the audio level set to slightly less than 0dB. This usually is not intentional and results from accidentally moving the opacity or volume "line" (the line at the top of each event) while moving an event. Without this script, such an accident is very difficult to detect, and can result in long rendering times. You can edit the script to alter the threshold (e.g., most people would have no reason to set an event to 99% opacity, yet if you accidentally nudge this control, Vegas will re-render the video for that event). The script comes with the threshold set to 90% (i.e., if the level is set to 89% or lower, the script assumes you really meant to do it).
Audit for short blank gaps
This script finds short blank gaps or overlaps between events on the first selected track. The intent is to find those 1-2 frame gaps or overlaps that are all too easy to create in Vegas. You can change the script to increase or decrease the threshold used to detect gaps/overlaps (the default is set to three frames). Because of the problem of moving events in a large, multi-track project, the script merely inserts a marker at the beginning of each gap, and assigns a marker name that start with "***" so you can easily scan your project, and make the appropriate changes. The script does not actually move or alter any event.
Delete n frames from event
This script delete "n" frames from the start of an event, then moves remaining events on that track to the left by "n" frames. Thus, the video event will be shortened by "n" frames (default=6; edit the script to change). If the track beneath the video track contains audio, that audio event will also be shortened by the same number of frames. The script can be modified to delete at end of the event instead. You don't have to select the event to make this script work; you merely have to have a track selected, and make sure that the cursor is positioned over the event you want to trim.
Highlight selected fX Events
This script finds and highlights all video events to the right of the cursor if they contain the specified fX. Edit the script to define the fX you are looking for. I created this because Satish's excellent plugin that permits the use of Virtualdub filters does not re-initialize the settings of those filters when you save, and later re-open a project. I therefore have to find the events that have this filter attached, and manually fix things up. With hundreds of events, it was taking forever to find the events. Note that the script works only on the events to the right of the cursor, so once you find the first event that has the fX you are looking for, and make your changes, you just run the script again to find the next occurrence.
You have to edit the script to alter the fX you want to search for. I keep telling myself that I should add a dialog that gets loaded with all the fX available and lets you choose, but I haven't gotten around to it yet.
Markers at Media Change Points
This script adds markers at media transitions on the first selected track. A "media transition" happens when an event comes from a different file than the preceding event. The markers are labeled with the name of the media file. If a marker already exists, no new marker is created. I can't remember now why I created this, but it sure seemed useful at the time ...
Markers To Regions
This script converts markers to regions. The original markers are left intact. The script ignores all markers beyond the last event. This tries to duplicate a similar function found in Sound Forge. Lots of Vegas scripts operate on regions, but not markers. This provides a very quick way to change from markers to regions, just like you can do in Sound Forge.
PlaySound
This script plays a sound from within a Vegas script. Nothing earth-shattering, but several people asked how to do this.
Time Lapse (1 Frame per Event)
This script creates true time lapse movies from the multiple one-second clips that many camcorders record when put in "time-lapse" mode. It assumes that each one-second capture is in a separate event. It saves only the last frame from each event on the selected video track, and deletes everything else, including the resulting gaps between events. Only the first selected track is affected.
The intent of this script is that once you have one frame from each one second capture, you can use Vegas' velocity envelope to create faster or slower versions of your time lapse. The results of this script are excellent compared to the silly one second capture done by camcorders (necessitated by the inability of simple videotape mechanisms to be started and stopped for just one frame). Of course, if you want really great time lapse from a video camera, download SCLive, connect your laptop, and get perfect time lapse at any rate you can think of (hours, days, weeks, months ...).
This version fixes some bugs that I found in the version that I originally posted on this forum.
Hope these help someone, somewhere, sometime, someway ... oh, you get the idea.