({{, SelectionAnimate[notebook]
animates graphics in the current selection in a notebook. }, {, SelectionAnimate[notebook,t]
animates graphics for t seconds. }})

OpenersNotesSection(Spacer1)Details and Options

The first argument of SelectionAnimate is a (RefLink[NotebookObject, paclet:ref/NotebookObject]).

The current selection for SelectionAnimate will typically be a cell group.

SelectionAnimate stops the animation as soon as you do any interactive operation in the front end, such as pressing a key or clicking the mouse.

The timing in SelectionAnimate does not count setup or initial rendering of frames.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a series of graphics and animate them:

nb=CreateDocument[Table[ExpressionCell[Plot3D[Sin[Sqrt[x^2+y^2]+t],{x,-8,8},{y,-8,8},BoxRatios->Automatic,Ticks->None],"Output",AnimationDisplayTime->.5,CellTags->"animate"],{t,π/8,2π,π/8}]];

NotebookLocate[{nb,"animate"}];SelectionAnimate[nb,8]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SelectionEvaluate, paclet:ref/SelectionEvaluate])}})}})