AnimationTimeIndex
is an option to Animator and related functions that specifies the current time index for the animator.
Details
- AnimationTimeIndex runs from 0 to the duration of the animation, in seconds.
- AnimationTimeIndex is 0 at the animator's minimum value and duration at the maximum.
- The typical default setting of AnimationTimeIndex -> Automatic will calculate the appropriate value from the animation.
- While Animator[Dynamic[var],…] is running, changing var outside the animator will have no effect on AnimationTimeIndex.
- AnimationTimeIndex varies continuously, even for discrete animations.
- AnimationDirection has no impact on AnimationTimeIndex.
Examples
open allclose allBasic Examples (2)
With default option settings, AnimationTimeIndex runs from 0 to 5:
Changing the DefaultDuration will change the maximum time index:
Scope (1)
Interactively changing a paused animator will also change the value of AnimationTimeIndex:
Possible Issues (1)
To change a running animator programmatically, change the value of AnimationTimeIndex, not the animation variable:
Text
Wolfram Research (2014), AnimationTimeIndex, Wolfram Language function, https://reference.wolfram.com/language/ref/AnimationTimeIndex.html.
CMS
Wolfram Language. 2014. "AnimationTimeIndex." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AnimationTimeIndex.html.
APA
Wolfram Language. (2014). AnimationTimeIndex. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AnimationTimeIndex.html