GetKeyframeTemporalEase - how to use it & what does it mean?
I am trying to copy/paste keyframes from one parameter to another (types slider, color & points only). To do this, I have a struct with keyframe properties, which I hope to populate/'copy' per keyframe into a vector of keyframes, which I then use to 'paste'.
I am having difficulty understanding AEGP_GetKeyframeTemporalEase, the only guidance on which in the SDK guide is this,
Retrieves the AEGP_KeyframeEases associated with the specified dimension of the stream’s value at the time of the keyframe. dimensionL ranges from 0 to (temporal_dimensionality -1).
AEGP_GetKeyframeTemporalEase (AEGP_StreamRefH streamH, AEGP_KeyframeIndexkey_index, A_long dimensionL, AEGP_KeyframeEase *in_easeP0, AEGP_KeyframeEase *out_easeP0);
NOTE: the returned ease values must be multiplied by layer height to match the values displayed in the After Effects UI.
This is somewhat confusing.
- What is 'the specified dimension of the stream’s value', and how is it specified?
- What is dimensionL? The KF streams (slider, color & point) each seem only to have a 'temporal dimensionality' of 1, which leaves a range of 0 to 0.
- How is ease value related to layer height? Is this only a concern for 'displaying' the values (where?), which i do not need to worry about when only copying keyframes from one to another?
Finally, is there an easier way of doing this, perhaps by just copying keyframe type/object?