VTweenSampler2:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > VGens > Tweens

VTweenSampler2
ExtensionExtension

Provides time-invariant sampling of 2D ScinTween curves

Description

The VTweenSampler2 class provides a means to sample arbitrary values from a 2D ScinTween table as a VGen.

Class Methods

.fr

.pr

.sr

Make a VTweenSampler2 at the requested rate.

Arguments:

tween

The ScinTween curve to sample.

t

Where in the curve to sample. These values are in units of time on the ScinTween object, with time starting at 0 and extending to the total duration of the tween. Values of t outside of that range will clamp to the start and end levels in the tween if the tween does not loop, and will repeat if the tween does loop.

Returns:

The value of the tween at time t.

dimensions

inputoutput
tween, 12

Examples