Animate Results

Create 3D animations for simulations that include Modelica Multibody blocks.

  1. Load a mechanical system model that includes Modelica Multibody blocks.
    Example: Demo Browser > Modelica Multibody > DoublePendulumMB.scm.
  2. On the ribbon, select Simulation > Animation.

    The Animation Parameters for Modelica Multibody dialog appears:

  3. On the Animation tab, select from the following options:
    Parameter Description
    Create Animation Create an animation of your model simulation.
    A notice icon is displayed on the ribbon when this option is selected. For convenience, if you wish to disable the option, you can click the icon rather than deselecting the option from the animation dialog.

    Play Animation during simulation Play the animation in real time while your simulation is running.
    Save Animation file Save the animation as an .mtsf file. Enter a file name and path for the file.
  4. Select the Properties tab to define the properties for the animation window including docking state, size and position.

  5. Run your simulation.
    If you selected the option to Play Animation during simulation, the 3D Viewer plays the animation of your model in real time while the simulation runs.

    Note: You may need to move or close browsers if they are blocking the 3D Viewer window.
  6. Play the animation using the controls on the toolbar at the bottom of the 3D Viewer window.

Define Animation Settings

  1. Select the Settings button on the Animation toolbar.

  2. Define the Animation Settings.

    Animation Setting Description
    Playback Select whether to play the animation on a continuous Loop, Once, or Bounce (between forwards and backwards). Select the check box to Reverse Playback.
    Display Change the speed of the animation.
    Increment By Increase the value in the counter to skip frames during playback. Click to restore the default values.
    Range Select Range to define the start and end frames for the animation. This lets you limit the playback range of the animation, making it easier to study specific details in the simulation. You can use the Ctrl key while clicking on the Start or End icons to jump to Range Start and Range End, respectively.
    Speed Drag the slider to change the speed of the animation from slow to fast.

Animation Toolbar Controls

Use the controls on the animation toolbar to play your animation.

Animation Toolbar Control Description
Play the animation.
You can also press the Spacebar to play and pause the animation.
Pause the animation.
Move to the previous or next frames in the animation.
Move to the first or last frames of the animation.

Drag the slider to view a particular point during the simulation.
Click the Settings button to modify the Animation Settings.

Define the Model View

Define the axis from which to view the model in the animation.

  1. Select the Global Axis button in the 3D Animation Viewer.

  2. Choose a Top, Front, Right, or Isometric view of the model.

View Multiple Animations

Use the tabs in the 3D Viewer to view the animations from multiple model simulations.

When working with multiple models, the 3D Viewer retains the animations created during your current Activate session.
  1. Load at least two multibody models.
  2. Set up and simulate each model with the Animation option selected in the Simulation Parameters dialog.
  3. Select a tab for the model animation that you would like to review.

View Animation in MTSF Files

Use the Results Player to view the animation in an .mtsf model file.

  1. On the ribbon, select Tools > Results Player.
  2. Select and navigate to an .mtsf file that contains animation.
  3. Use the controls at the bottom of the Results Player dialog to play the animation.