I know how to set the audio level op audio clips through the API, but can someone help me out on the clip volume of a video clip?
The examples below are in C#
This is the way I set the level of a audio clip (this works):
// You get the clip indirectly fom the scene director:
xpSceneDirectorTrack audiotrack1;
xpSceneDirectorClip audio_clip;
scenedirector.GetTrackByName("Audio1", out audiotrack1); // Get the first audio track
audiotrack1.GetClipByName("AudioClip Name", out audio_clip);
audio_clip.SetKeyFrame(1, 0.5); // Creating/changing a keyframe on frame 1 with value 0.5, if no other keyframes the level changes to 0.5 towards the end of the clip
This the way i try to set the level of a videoclip (does not work, why?):
xpSceneDirectorTrack vidTrack1;
xpSceneDirectorClip vid_clip;
scenedirector.GetTrackByName("Track1", out vidTrack1); // Track 1 is the label of the track
vidTrack1.GetFirstClip(out vid_clip);
vid_clip.SetKeyFrame(1, 0.5); // Creating/changing a keyframe on frame 1 with value 0.5
// This gives no error, but also no result (audio stays 100%)
#XPression