I'm trying to add an effect to a track then add keyframes at markers to adjust the effect. For some reason, I can't seem to create a keyframe. I've reduced it down to a 2 line test case:
var keyf = new Keyframe( new Timecode(2000) );
keyf.Type = VideoKeyframeType.Hold;
I run this script and get an Invalid Keyframe error on the second line (actually doing anything with keyf on the next line causes the same error). I tried adding the keyframe to the track effect I created and then set the Type. I then got a "Failed to Add Keyframe" msg. But then after the script ended, the keyframe appeared on the track.
I'm obviously missing something here. I scoured all the scripts in the toolkit and scanned Sundance. I can't find a single example script that adds an effect keyframe.
Can someone explain why the keyframe I created is invalid? Am I going about this wrong?
2G
var keyf = new Keyframe( new Timecode(2000) );
keyf.Type = VideoKeyframeType.Hold;
I run this script and get an Invalid Keyframe error on the second line (actually doing anything with keyf on the next line causes the same error). I tried adding the keyframe to the track effect I created and then set the Type. I then got a "Failed to Add Keyframe" msg. But then after the script ended, the keyframe appeared on the track.
I'm obviously missing something here. I scoured all the scripts in the toolkit and scanned Sundance. I can't find a single example script that adds an effect keyframe.
Can someone explain why the keyframe I created is invalid? Am I going about this wrong?
2G