// Edit specific keyframe public void ModifyKeyframe(KEYFRAME_TYPE type, int index, Keyframe newKeyframe) { m_curveContainer.getCurve(type).MoveKey(index, newKeyframe); ModifyClip(); }
// Return specific keyframe public Keyframe GetKeyframe(KEYFRAME_TYPE type, int index) { return(m_curveContainer.getCurve(type).keys[index]); }
// Return keyframe of type public Keyframe[] ReadKeyframes(KEYFRAME_TYPE type) { return(m_curveContainer.getCurve(type).keys); }
// Add Keyframe to Animation public void AddKeyframe(KEYFRAME_TYPE type, float time, float value) { Keyframe tempKeyframe = new Keyframe(time, value); m_curveContainer.AddKeyframe(type, tempKeyframe); }
public AnimationCurve getCurve(KEYFRAME_TYPE curve_type) { return(animationCurves[(int)curve_type]); }
public void AddKeyframe(KEYFRAME_TYPE type, Keyframe keyframe) { animationCurves[(int)type].AddKey(keyframe); }
// Delete specific keyframe public void DeleteKeyframe(KEYFRAME_TYPE type, int index) { m_curveContainer.getCurve(type).RemoveKey(index); ModifyClip(); }