This demo shows how the FractionRemapper node may be used to play different sections of an animation.

Each interpolator has a timeScale of 30 and keys in the range 0-30. The buttons below will play keys [0-10], [10-20], and [20-30] respectively.

This is achieved by using a FractionRemapper. The FractionRemapper is given a timeScale of 30 to match the interpolators. The TimeSensor's fraction is routed to the FractionRemapper's inFraction. And the FractionRemapper's outFraction is routed to the Interpolators.

With this setup, then all that is needed to change from one segment to another is to change the startKey and endKey fields of the FractionRemapper. For example, when you press the link to display keys 10-20, the FractionRemapper's startKey is set to 10 and endKey to 20. That's all that is required for the change.



Click here to play keys 0-10.
Click here to play keys 10-20.
Click here to play keys 20-30.