LerpSubset

ABSTRACT

This is a progressor animation (that is, it modifies the input variable), that lerps a subset of a mesh-tree from a specified starting value to the ending value. After the animation is finished, the iterator and follower are set to this value (replacing the specified subset with the end variable)

PARAMETERS
mesh&A single iterator that specifies the variable this animation should apply to
tag_predicate(tag)The function that takes in a mesh's tag and dictates whether it should take place in the lerping process
startThe starting value
endThe ending value (must be of same type as the starting value
timethe amount of seconds the lerp should take place over
timethe amount of seconds the lerp should take place over
unit_map(u)Defaults to smooth(u). If provided, it is essentially a rate function that controls the timing of this animation. It receives normalized time from 0 to 1 and returns a normalized time from 0 to 1.
RETURN

An animation that interpolates the selection from the start to the end. After the animation is executed, the iterator and follower are both updated such that the specified selection is replaced with the end value.

DECLARATION
func LerpSubset([subset] {[main] {mesh&, tag_predicate(tag)}}, start, end, [config] {[main] {time}, [parameterized] {time, unit_map(u)}})