Assembly: VM.Operations.Post.dll Interface for Animation View.
Implements
IViewExamples
For an example that includes information about interfaces, see this example. To view the examples, refer to the location of the ‘Install_Path\Motion\Document\Postprocessor API for Python.zip’ file.Remarks
This interface provides functionalities for managing and interacting with animation views. It includes properties and methods to control the appearance, behavior, and data associated with animation views.Properties
AnalysisResultType
Gets the type of analysis result for the currently created animation view.Property Value
AnalysisResultTypeExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The AnalysisResultType property is used to determine the type of analysis result associated with the currently created animation view.This type is one of several analysis types generated from the overall result. The available options are:- Dynamics
- Eigenvalue
- Initial
- LinearStatics
- Statics
- Thermal
- ModeContribution
- Nothing
BottomColor
Gets or sets the bottom color of the view’s background.Property Value
ColorExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The BottomColor property allows you to set the bottom color of the view’s background. In the UI, this property is represented under the “Background” category with the property name “Bottom Color”.DocumentFilePath
Gets the file path that contains the information of the simulation results.Property Value
stringExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
Use this property to retrieve the location of the file containing the simulation results. The file path is read-only and is determined by the simulation process.IsFollowingCameraActive
Gets or sets a value that activates the following camera.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property enables or disables the camera’s tracking behavior. When set totrue,
the camera’s viewpoint will follow the position and orientation of the target body during animation.
If set to false, the camera will remain stationary and will not track the target.
IsFollowingRotXAxis
Gets or sets a value that determines whether the component follows the orientation of the target along the X-axis.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property controls whether the component tracks the target’s orientation on the X-axis. When set totrue, the component will adjust its orientation to match the target’s X-axis rotation.
When set to false, the component will not follow the X-axis rotation of the target.
IsFollowingRotYAxis
Gets or sets a value that determines whether the component follows the orientation of the target along the Y-axis.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property controls whether the component tracks the target’s orientation on the Y-axis. When set totrue, the component will adjust its orientation to match the target’s Y-axis rotation.
When set to false, the component will not follow the Y-axis rotation of the target.
IsFollowingRotZAxis
Gets or sets a value that determines whether the component follows the orientation of the target along the Z-axis.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property controls whether the component tracks the target’s orientation on the Z-axis. When set totrue, the component will adjust its orientation to match the target’s Z-axis rotation.
When set to false, the component will not follow the Z-axis rotation of the target.
IsFollowingXAxis
Gets or sets a value that determines whether the component follows the position of the target along the X-axis.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property controls whether the component tracks the target’s position specifically on the X-axis. When set totrue, the component will move to match the target’s X position.
When set to false, the component will not follow the X position of the target.
IsFollowingYAxis
Gets or sets a value that determines whether the component follows the position of the target along the Y-axis.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property controls whether the component tracks the target’s position specifically on the Y-axis. When set totrue, the component will move to match the target’s Y position.
When set to false, the component will not follow the Y position of the target.
IsFollowingZAxis
Gets or sets a value that determines whether the component follows the position of the target along the Z-axis.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property controls whether the component tracks the target’s position specifically on the Z-axis. When set totrue, the component will move to match the target’s Z position.
When set to false, the component will not follow the Z position of the target.
IsVisibleLogo
Gets or sets a value indicating whether the logo is visible.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This flag determines whether the logo is shown or hidden. In the UI, this property is represented under the “Logo” category with the property name “Visible”.IsVisibleNavigationCube
Gets or sets a value indicating whether the navigation cube is visible.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This flag determines whether the navigation cube is shown or hidden. In the UI, this property is represented under the “Navigation Cube” category with the property name “Visible”.IsVisibleStateInfo
Gets or sets a value indicating whether the state information is visible.Property Value
boolExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This flag determines whether the state information is shown or hidden. In the UI, this property is represented under the “StateInfo” category with the property name “Visible”.LogoHeight
Gets or sets the height of the logo image.Property Value
uintExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the height of the logo image. In the UI, this property is represented under the “Logo” category with the property name “Height”.LogoPath
Gets or sets the file path of the logo image.Property Value
stringExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the file path of the logo image. In the UI, this property is represented under the “Logo” category with the property name “File Path”.LogoPosition
Gets or sets the position of the logo.Property Value
LayoutExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the position of the logo. The available options are:- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
LogoWidth
Gets or sets the width of the logo image.Property Value
uintExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the width of the logo image. In the UI, this property is represented under the “Logo” category with the property name “Width”.NavigationCubePosition
Gets or sets the position of the navigation cube.Property Value
LayoutExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the position of the navigation cube. The available options are:- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
Opacity
Gets or sets the opacity of the logo.Property Value
doubleExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the opacity of the logo. Only values between 0 and 100 are valid. In the UI, this property is represented under the “Logo” category with the property name “Transparency”.StateInfoPosition
Gets or sets the position of the state information.Property Value
LayoutExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the position of the state information. The available options are:- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
TextColorStateInfo
Gets or sets the font color of the state information.Property Value
ColorExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This property allows you to set the font color of the state information. In the UI, this property is represented under the “StateInfo” category with the property name “Font Color”.TopColor
Gets or sets the top color of the view’s background.Property Value
ColorExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The TopColor property allows you to set the top color of the view’s background. In the UI, this property is represented under the “Background” category with the property name “Top Color”.TransformationType
Gets or sets the transformation type that determines the following directions of the camera.Property Value
TransformationTypeExamples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The TransformationType property is used to control whether the camera follows the target’s translational or rotational direction.- In
Translationmode, the camera follows only the movement of the target and does not adjust to its rotation. - In
Rotationmode, the camera follows the target’s rotation but also tracks its translational direction.
Methods
CreateCoordinateSystem(string, string)
Creates a coordinate system for analyzing a position on a body.Parameters
name string
The name of the coordinate system to be created.
parentInfo string
The parent entity for the coordinate system.
Define the parent body or node in coordinate system.
If not provided, the default value is GroundName.
Returns
IOperationsCSYSViewModel An instance of IOperationsCSYSViewModel representing the created coordinate system.Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method creates a coordinate system with the specified name and assigns it to the given parent entity. If the parent entity is not specified, the coordinate system is assigned to the default ground entity.CreateSoundPressure(IList<string>, IList<string>, double, double, double, double, double, double, int, int, bool)
Creates sound pressure data based on the Rayleigh Integral for analyzing sound pressure generated by vibrations on the system surface.Parameters
bodyNames IList<string>
The list of entity names whose surfaces generate the sound pressure.
coordinateNames IList<string>
The list of coordinate system names used in the analysis.
coarseningRate double
Percentage of the number of nodes remaining in the sampling result with respect to the initial number of nodes.
maxAreaFactor double
Maximum allowable area of each element generated by the sampling result. It sets the condition that the area of each element cannot be greater than (Max Area Factor) * (Average element area).
maxAspectRatio double
Maximum allowable aspect ratio of each element generated by the sampling result.
airDensity double
Density of the air.
soundVelocity double
Speed of sound in air.
frequency double
The number of analysis results per second is determined as 10*analysis frequency.
start int
The start frame for the time range to be analyzed.
end int
The end frame for the time range to be analyzed.
isDeicbelScale bool
The decibel scale.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of sound pressure data series.Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method uses the Rayleigh Integral to analyze the sound pressure generated by the vibrations on the system surface.Fit()
Adjusts the view to fit all visible entities within the current viewport.Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The Fit method ensures that all visible entities are scaled and positioned to fit within the current viewport. This is useful for resetting the view to include all entities after zooming or panning.GetViewModelByName(string)
Retrieves an instance of an entity based on the provided name.Parameters
name string
The name of the entity to be retrieved.
Returns
IEntityBaseViewModel An instance of IEntityBaseViewModel representing the entity with the specified name, ornull if no such entity exists.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method searches for an entity with the given name and returns the corresponding instance. If no entity with the specified name is found, the method returnsnull.
GetViewSpecs()
Retrieves an array of view specifications corresponding to the number of loaded animation frames.Returns
IViewSpec[] An array of IViewSpec instances that represent the positions of the animation camera for each frame, ornull if no frames are loaded.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method returns an array where each element corresponds to a specific frame in the loaded animation, allowing for the configuration of the animation camera’s position for each frame. If no frames are loaded, the method returnsnull.
HideOthers(params string[])
Hides all entities except the specified ones.Parameters
names string[]
An array of entity names to remain visible. All other entities will be hidden.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The HideOthers() method is used to hide all entities in the current view except for those specified in thenames parameter.
This is useful for focusing on specific entities while temporarily hiding others.
HideOthers(params Guid[])
Hides all entities except the specified ones.Parameters
entityIDs Guid[]
An array of entity ids to remain visible. All other entities will be hidden.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
The HideOthers() method is used to hide all entities in the current view except for those specified in theentityIDs parameter.
This is useful for focusing on specific entities while temporarily hiding others.
PlayAnimation()
Plays the loaded animation frames.Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method starts the playback of the animation frames that have been loaded. If no frames are loaded, the method should handle this scenario appropriately, such as by displaying an error message or logging the issue.RecordingAnimation(string, RecordingType, RecordingRangeType, int, IViewSpec[])
Records the loaded animation frames to a file.Parameters
filePath string
The file path where the recording will be saved.
recordingType RecordingType
The format in which the recording will be saved. Supported types are AVI, WMV1, WMV2, MP4, and GIF.
rangeType RecordingRangeType
The range of the recording. Supported options are ActiveView
for the currently active view, and ActiveGroup
for the page containing the active view.
frameRate int
The frame rate of the recording. The default value is 10 frames per second.
viewSpecs IViewSpec[]
An array of IViewSpec instances for setting the camera position for each frame.
If null, the camera position will not change and will remain at the existing position.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method records the loaded animation frames to a specified file format. It supports different recording types and range options. The frame rate can be adjusted, and custom camera positions for each frame can be set through theviewSpecs parameter.
SetFollowingCameraTarget(string)
Sets the target body for the camera. The camera’s position and orientation will follow those of the target body.Parameters
targetName string
The names of the target entity. The target entities are Body, Marker, Node.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This function allows the camera to track and maintain the same position and orientation as the target body. It is useful for situations where the camera needs to follow an object, such as in a third-person perspective or object tracking scenario. If the target body is a ResultMarker and itsIsVisible property is false, it will automatically be set to true to ensure visibility when being tracked by the camera.
SetViewSpec(IViewSpec)
Updates the camera information for the current animation frame position.Parameters
viewSpec IViewSpec
The IViewSpec instance containing the new camera information.
Examples
For an example that includes this property, see the Interface IOperationsAnimation.Remarks
This method updates the camera information for the current position in the animation frames using the providedviewSpec.