TransformSubset

ABSTRACT

A progressor animation that interpolates a subset of the input variable into the target, based only the points of the starting and ending values. That is, no type information is necessary. After the animation is finished, the iterator and follower are set to the final value (replacing the specified subset of the iterator with the target 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 transformation process
targetThe target value of the selection
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.
path_arcDefaults to the zero vector. If provided, it should be a rotation vector whose magnitude is how much rotation should take place (i.e., how much deviation from a straight line), and the direction is the axis of rotation. See Arrow for more information on how a path arc works
RETURN

An animation that interpolates the selection of the iterator to the target using point information alone. After the animation is executed, all followers and iterators are set to the final value (the original iterator where the selection is replaced with target)

DECLARATION
func TransformSubset([mesh_tree] {[main] {mesh&, tag_predicate(tag)}}, target, [config] {[main] {time}, [parameterized] {time, unit_map(u), path_arc}})