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

VTweenSampler1
ExtensionExtension

Provides time-invariant sampling of 1D ScinTween curves

Description

The VTweenSampler1 class provides a means to sample arbitrary values from a one-dimensional ScinTween table as a VGen.

Class Methods

.fr

.pr

.sr

Make a VTweenSampler1 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, 11

Examples