is an option for Manipulate and related functions that gives a list of times and control settings.
KeyframeActions
is an option for Manipulate and related functions that gives a list of times and control settings.
Details
- KeyframeActions specify interesting controls settings for a dynamic expression that gets rendered at a given time in a video. It is typically used for creating animations from experiments.
- Possible settings include:
-
{t1:>actions1,…} a list of times and the associated parameter actions {assoc1,…} a list of associations of keyframe action specifications - Each actionsi should be a list of settings for different variables in the form of {u=ui,v=vi,…}.
- Possible keys for associ are:
-
"Time" the time associated with the bookmark "Actions" setting of the controls "Label" a label for the bookmark - Video[Manipulate[…]] looks into keyframe actions when creating the video file.
- In Manipulate, use KeyframeActionsTrue to enable interactive addition of keyframes using the graphical user interface.
Examples
open all close allBasic Examples (1)
Enable interactive setting of keyframe actions:
Manipulate[x ^ 2, {x, 0, 1}, KeyframeActions -> True]Specify explicit keyframe actions:
Manipulate[x ^ 2, {x, 0, 1}, KeyframeActions -> {0 :> {x = 0}, 1 :> {x = .5}, 2 :> {x = .5}, 3 :> {x = 0}, 5 :> {x = 1}}]VideoGenerator[%, 5]Scope (1)
Specify the KeyframeActions as a list of associations:
Manipulate[x ^ 2, {x, 0, 1}, KeyframeActions -> {<|"Time" -> 0, "Actions" :> {x = 0}, "Label" -> "1"|>, <|"Time" -> 1, "Actions" :> {x = .5}, "Label" -> "2"|>, <|"Time" -> 2, "Actions" :> {x = .5}, "Label" -> "3"|>, <|"Time" -> 3, "Actions" :> {x = 0}, "Label" -> "4"|>, <|"Time" -> 5, "Actions" :> {x = 1}, "Label" -> "5"|>}]Related Workflows
- Build a Manipulate ▪
- Use the Manipulate Interface
History
Text
Wolfram Research (2024), KeyframeActions, Wolfram Language function, https://reference.wolfram.com/language/ref/KeyframeActions.html.
CMS
Wolfram Language. 2024. "KeyframeActions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeyframeActions.html.
APA
Wolfram Language. (2024). KeyframeActions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KeyframeActions.html
BibTeX
@misc{reference.wolfram_2026_keyframeactions, author="Wolfram Research", title="{KeyframeActions}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/KeyframeActions.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_keyframeactions, organization={Wolfram Research}, title={KeyframeActions}, year={2024}, url={https://reference.wolfram.com/language/ref/KeyframeActions.html}, note=[Accessed: 12-June-2026]}