Is this a Bug? The script bellow works on Vegas Pro 21 and does not work on Vegas Pro 22. But, if i add manually, menu, insert, then the adjustment event works properly on Vegas Pro 22.
using ScriptPortal.Vegas; namespace Test_Script { public class Class1 { public Vegas myVegas; public void Main(Vegas vegas) { myVegas = vegas; foreach (Track myTrack in myVegas.Project.Tracks) { if (myTrack.IsVideo() && myTrack.Selected) { VideoAdjustmentEvent vaEvent = new VideoAdjustmentEvent(myVegas.Project, myVegas.Transport.CursorPosition, Timecode.FromSeconds(5), "Adjustment Event"); myTrack.Events.Add(vaEvent); } } } } } public class EntryPoint { public void FromVegas(Vegas vegas) { Test_Script.Class1 test = new Test_Script.Class1(); test.Main(vegas); } }