Rider Focuser Triggers
Creates an automated camera focuser function based on keyframes.
Syntax
getCamFocus = createFocuser(keyframes, smoothing = 10)
Parameters
keyframes
A Keyframe
array that defines the camera focus at specific times.
smoothing
A number
defining the smooth amount at the beginning and end of interpolation.
Examples
Focuses from rider 1 to rider 2 interpolating from seconds 2 to 3, then focuses more on rider 3 than rider 2 interpolating from seconds 4 to 5.
getCamFocus = createFocuser([
[0, [1,0,0]],
[[2,0], [1,0,0]],
[[3,0], [0,1,0]],
[[4,0], [0,1,0]],
[[5,0], [0,0.5,1]]
])