Replaying an Animation

When replaying an animation, you can reuse the results that have been previously computed. You can also replay the animation of two trajectories to visualize the differences in the animation.


Before you begin:
  1. Select a model.

    For example, select Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic from the Modelica Standard Library.

  2. Simulate the model.
    Note: Simulation must be finished before you can replay it.
See Also
Simulating a Behavior
Managing a 3D Animation
  1. From the Variable Browser, select a component.

    Tips:
    • To replay the last animation, you can also select the model from the diagram layer.
    • To replay a previous animation, select a component from the corresponding Variable Browser.
    • If you want to compare two trajectories in the same animation, select a component in each of the two corresponding Variable Browsers.
    • You can display variable names and values dynamically on the diagram. See Monitoring Variables on the Diagram.

  2. Right-click any signal or node in the Variable Browser and select Replay Animation .

    Tip: You can also access this command from any of:
    • The Variable Browser, under the header, to the right.
    • The action bar, from any of the sections:
      • Behavior Authoring
      • Simulation

    Contrary to a virtual execution, note that there is:

    • No new computation: the previous result is reused.
    • No new Variable Browser.

    The following is the result:
    • The 3D animation appears.

      Tip: If the 3D animation does not appear, see next step.
    • The Experience Player toolbar appears.

    • The Simulation Options dialog box appear, as a dialog or as the icon to the right in the tab.
  3. From the Simulation Options dialog box, select animation options.

    You may have to click the icon to display the Simulation Options dialog box.

    For more information, see Managing Simulation Options Using the Simulation Options Dialog Box.

    Important: You may have to replay the simulation again depending on your selection.

  4. Use the Experience Player toolbar to execute the animation.

    Note:
    • You can only replay the animation of the results that have already been computed.

      When positioning the Experience Player at a time for which the results have not yet been computed, the 3D shapes remain in the position of the last computed simulation time.

    • You cannot plot a variable during the simulation time.

  5. To end the animation replay, click Replay Animation again or close the Experience Player toolbar.

    Note: The Experience Player toolbar must be undocked by dragging to be able to close.