-
Trying to linearly map markers to keyframes
I’m trying to link the value of an expression slider to the index of the layer’s markers so that I don’t need to adjust the keyframes of the slider, just the layer markers.
So far I have this applied to the slider:
m=thisLayer.marker.nearestKey(time);
m.index;which works so far. But what this does is snaps the value of the slider to each index (e.g. 1 to 2 to 3) and I want it to linearly move from one index to the next (e.g. 1 to 1.1 to 1.2… until it gets to 2).
I thought it would be something simple, but don’t know enough about how the linear function and layer markers works to know exactly what to do, if it’s possible.
Any help or suggestions on reading materials would be greatly appreciated.Thanks.