Skip to main content
The following sample code illustrates how to create a simple example.
  • The examples provided below can be found within the ‘Install_Path\Motion\Document\Postprocessor API for Python.zip’ compressed file.

Create an AnimationView corresponding to the Analysis type.

This example demonstrates how to create an animation view suitable for the analysis type and load animation frames.

Create a Coordinate System

This example demonstrates how to create a coordinate system. The Coordinate system can be created from various entities in the result as below, and this example describes how to create the Coordinate System.
  • Rigid Body
  • FE Node
  • Marker

Create Node & Element

This example demonstrates how to create nodes and elements within a flexible body.

Contour

This example demonstrates how to create a contour. Contour is a good tool for analyzing a simulation result. Since scalar data, such as stress, is displayed with color corresponding to value, you can easily estimate where a problem is during an animation.

Expression

This example demonstrates how to create a expression. A Postprocessor Expression is similar to a Function Expression in the Motion Preprocessor. It represents a formula that can be written as a combination of functions of displacement, velocity, and acceleration between specified markers, and it also supports basic mathematical functions.

Image Capture

This example demonstrates how to capture the content on the screen as an image.

Recording

This example demonstrates how to record an animation as a video.

Vector Display

This example demonstrates how to create a vector display. Vector display is used to display the force vector in animation view. It is a useful tool for analyzing the magnitude or direction of a force. The force and torque of joint, force, and contact are available in the vector display.

View Entity Management: Show, Hide, and Fit

This example demonstrates how to show, hide, or fit entities within the current Animation View.