AnimationModule Overview
AnimationModule Overview
TimeDriver

TimeDriver

The TimeDriver class allows driving an animation sampler using time.

Inherits From : Driver

Properties

This module exposes no properties.

Methods

MethodDescription
isRunning
isRunning(): BoolSignal


Returns a BoolSignal indicating whether the animation is running.
onAfterIteration
onAfterIteration(): EventSource


Returns an EventSource to which you may subscribe.
The event fires when the animation with loopCount completes an iteration.
Subscribers will receive the one-based index of the completed iteration.
onCompleted
onCompleted(): EventSource


Returns anEventSource to which you may subscribe.The event fires once when the animation completes.
reset
reset(): void


Resets the driver progress to time point zero.
reverse
reverse(): void


Reverses the animation from the moment it is called and goes back in time.
start
start(): void


Starts the animation.
stop
stop(): void


Stops or pauses the animation.

Was this article helpful?