-
Locking tracks in Vegas?
Posted by Tevya Washburn on July 18, 2006 at 3:58 pmIs there a way to completely lock a track in Vegas? Like in Photoshop or something where the layers is basically untouchable until it is unlocked? I keep hitting my split key and splitting both the track I’m working on and all the others, tracks that are muted (or the track I’m working on is soloed). It’s a pain to have to constantly remembe to click on the next clip so it’s selected and will be the only one split if I hit the split key. I just want to basically disable layers I’m not using until I’m ready to work with them.
Anyone know how to do this? Mute and Solo just disable it from being shown in the output.
–the Fiddler
Gary Alan replied 19 years, 9 months ago 4 Members · 9 Replies -
9 Replies
-
Edward Troxel
July 18, 2006 at 4:42 pm -
Tevya Washburn
July 18, 2006 at 5:43 pmThanks man. I guess that works. Kinda strange to me that there doesn’t seem to be a way to just lock a track. Maybe in 7?
Anyway, your method should do just fine, though it’s not quite as easy as just clicking a button or whatever. Thanks again.
–the Fiddler
-
Edward Troxel
July 18, 2006 at 5:54 pm -
Tevya Washburn
July 20, 2006 at 2:51 pmThat’d be way cool. But I know nothing about scripting, and doubt I’ll have the time to get into it in the near future.
–the Fiddler
-
Edward Troxel
July 20, 2006 at 4:29 pmThis should do it (I didn’t get a chance to test it, though). You might want to save two versions – this one as “LockSelectedTracks.js” and another one called “UnlockSelectedTracks.js” changing the “dolock” line from true to false.
[pre]
/**
* This script will lock all events on selected tracks
*
* Written By: Edward Troxel
* Copyright 2006 – JETDV Scripts
* Modified: 07-20-2006
**/import System;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;try {
var dolock = true; //Change to FALSE to unlock//Go through the list of Tracks
var trackEnum = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());if (track.Selected) {
//Go through the list of Events
var eventEnum = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var evnt : TrackEvent = TrackEvent(eventEnum.item());if (dolock) {
evnt.Locked = true;
} else {
evnt.Locked = false;
}eventEnum.moveNext();
}
}
trackEnum.moveNext();
}} catch (e) {
MessageBox.Show(e);
}
[/pre] -
Edward Troxel
July 20, 2006 at 4:32 pmOk, the formatting got all mixed up. The file can be downloaded from here:
https://www.jetdv.com/scripts/LockSelectedTracks.js
You would still need to modify that line and save it under a new name for the “unlock” version.
-
James Redmond
July 21, 2006 at 5:23 amEdward could you add this to Excalibur? Thanks, James
James Redmond
Dynamic Videos, Inc.
Rogers, AR USA -
Edward Troxel
July 21, 2006 at 1:11 pm -
Gary Alan
August 1, 2006 at 9:55 pmI also customize the toolbar so the Lock button is always there. I usually lock one or two events temporarily then unlock when done. Easy to click the one button Lock. Or lock a whole track with select events to end like Ed said.
Gary
Reply to this Discussion! Login or Sign Up
