Hi, I'm trying to make a script to automatically change the first keyframe of some mediafiles to a pre-built Preset I've made, but I can't seem to get it to work for some reason.
Let's say I have a VideoEvent evnt
I first try to get its keyframes with VideoMotionKeyframes vKeyFrames = evnt.VideoMotion.Keyframes
Then I get the first keyframe with vKeyFrame[0]
All is good so far. But then if I try to change the preset with something such as
vKeyFrames[0].Preset = presetName;
I get the error: 'ScriptPortal.Vegas.VideoMotionKeyframe' does not contain a definition for 'Preset' and no extension method 'Preset' accepting a first argument of type 'ScriptPortal.Vegas.VideoMotionKeyframe' could be found (are you missing a using directive or an assembly reference?)
Even though the keyframes should have the Preset param.
Does anyone know of a way to solve my issue? Thank you in advance