Hello!
I'm trying to access the motion kayframes of a video track. Or at least, that's what I think I want to do, because I'm spanish and I'm translating the names by my own, that's why I'll attach a photo just in case.
So in the Vegas API there is a class called TrackMotion Class, which provides access to video track motion data. It seems to have an attribute with the motionKeyframes so I might be able to work with that.
However I'm not able to reach such class!. Like, how do I get an instance of such class from my project? There are no Trackmotion instances in the Track class, so I'm a bit lost there.
If anyone wants to give a try, this simple .cs code should be a good point to start.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ScriptPortal.Vegas;
public class EntryPoint {
public void FromVegas(Vegas vegas) {
Project proj = vegas.Project;
foreach (Track track in proj.Tracks)
{
if(track.Selected && track.IsVideo()){
MessageBox.Show("I select track 3 for instance, and now I want to access the track motion keyframes here");
}
}
}
}
Thanks in advance :)