Hi. I'll try to explain with my english :)
Here is the C# script that will show this issue:
Track A is selected but all track commands which I run from menu or shortcuts operate with Track B. Is it normal? I see that Track B is "focused" (it has small blinking dot) but I can not set the focus to Track A via script. I want to select track as I do it manually with mouse (property Focused is missing)
The same problem with events: If I select some events with mouse and then a script selects another, I'll face with the same issue: all events menu commands operate with another events.
Here is the C# script that will show this issue:
using System;
using System.Windows.Forms;
using Sony.Vegas;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
// Create tracks
vegas.NewProject(false, false);
vegas.Project.Tracks.Clear();
VideoTrack trackA = vegas.Project.AddVideoTrack();
trackA.Name = "Track A";
VideoTrack trackB = vegas.Project.AddVideoTrack();
trackB.Name = "Track B";
// Select trackA
trackA.Selected = true;
vegas.UpdateUI();
MessageBox.Show("Track A is selected. Now close this message & run Tools - Video - Track Motion" + Environment.NewLine + "Track Motion Window for track B will be opened");
}
}
Track A is selected but all track commands which I run from menu or shortcuts operate with Track B. Is it normal? I see that Track B is "focused" (it has small blinking dot) but I can not set the focus to Track A via script. I want to select track as I do it manually with mouse (property Focused is missing)
The same problem with events: If I select some events with mouse and then a script selects another, I'll face with the same issue: all events menu commands operate with another events.