Hello,
I have a script that is loading velocity envelope and gets the frame & value of all points.
Now because my video has slow motion effect, what might be frame 214 isn't really the 214th frame of the sequence. Is there a way I can get the actual frame displayed from the footage?
Here's my code
public void FromVegas(Vegas myVegas) { // Loop over tracks foreach (Track track in myVegas.Project.Tracks) // Check if track is video if (track.IsVideo()) // Loop over events in the trakc foreach (TrackEvent evnt in track.Events) // Load if selected if (evnt.Selected) { // Video event VideoEvent vevnt = (VideoEvent)evnt; // Media name string videoName = vevnt.ActiveTake.Name; // Video envelope Envelope VelEnv = FindVEEnvelope(vevnt, EnvelopeType.Velocity); // Check if video has envelope if (null == VelEnv) { MessageBox.Show("Selected video has no velocity"); return; } // Loop over points foreach (var point in VelEnv.Points) { // Get frame & value var frame = point.X.FrameCount; // Here I want it to be footage frame, and not project frame. var value = point.Y; } } }