[example-1] [example-2] [run-ex1] [run-ex2]ScalarInterpolators interpolate linearly among a set of SFFloat values (keyValue parameter) (single floating point value).
{
eventIn SFFloat set_fraction # this input float value causes the interpolator function to evaluate
exposedField MFFloat key [ ] # key values in the set_fraction domain
exposedField MFFloat keyValue [ ] # functions values (1:1 related to above field)
eventOut SFFloat value_changed # current output value (associated to the current time)
}
Usage :
ScalarInterpolator { key [0, 0.25, 0.5, 0.75, 1] keyValue [0, 3.5, 10.8, 12.4, 15] }