> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface IOperationsAnimation

Namespace: [VM.Operations.Post.Interfaces](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces)\
Assembly: VM.Operations.Post.dll

Interface for Animation View related operations.

```csharp theme={null}
public interface IOperationsAnimation : IView, IOperationsBase
```

#### Implements

[IView](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IView.md),
[IOperationsBase](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsBase.md)

## Properties

### AnalysisResultType

Gets the type of analysis result for the currently created animation view.

```csharp theme={null}
AnalysisResultType AnalysisResultType { get; }
```

#### Property Value

AnalysisResultType

#### Examples

The following example demonstrates how to use the `AnalysisResultType` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
```

#### 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:
<ul><li>Dynamics</li><li>Eigenvalue</li><li>Initial</li><li>LinearStatics</li><li>Statics</li><li>Thermal</li><li>ModeContribution</li><li>Nothing</li></ul>

### BottomColor

Gets or sets the bottom color of the view's background.

```csharp theme={null}
Color BottomColor { get; set; }
```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.windows.media.color)

#### Examples

The following example demonstrates how to use the `BottomColor` property:

```csharp theme={null}
import clr;
clr.AddReference("PresentationCore");
clr.AddReference("System");
clr.AddReference("System.Collections");

filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.BottomColor = Colors.Red;
```

#### 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.

```csharp theme={null}
string DocumentFilePath { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### Examples

The following example demonstrates how to use the `DocumentFilePath` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
print(animationView.DocumentFilePath);
```

#### 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.

### IsVisibleLogo

Gets or sets a value indicating whether the logo is visible.

```csharp theme={null}
bool IsVisibleLogo { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Examples

The following example demonstrates how to use the `IsVisibleLogo` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.IsVisibleLogo = False;
```

#### 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.

```csharp theme={null}
bool IsVisibleNavigationCube { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Examples

The following example demonstrates how to use the `IsVisibleNavigationCube` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.IsVisibleNavigationCube = False;
```

#### 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.

```csharp theme={null}
bool IsVisibleStateInfo { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Examples

The following example demonstrates how to use the `IsVisibleStateInfo` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.IsVisibleStateInfo = False;
```

#### 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.

```csharp theme={null}
uint LogoHeight { get; set; }
```

#### Property Value

[uint](https://learn.microsoft.com/dotnet/api/system.uint32)

#### Examples

The following example demonstrates how to use the `LogoHeight` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.LogoHeight = 16;
```

#### 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.

```csharp theme={null}
string LogoPath { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### Examples

The following example demonstrates how to use the `LogoPath` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.LogoPath = "/path/to/logo.png";
```

#### 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.

```csharp theme={null}
Layout LogoPosition { get; set; }
```

#### Property Value

Layout

#### Examples

The following example demonstrates how to use the `LogoPosition` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.LogoPosition = Layout.TOP_RIGHT;
```

#### Remarks

This property allows you to set the position of the logo. The available options are:
<ul><li>TOP\_LEFT</li><li>TOP\_RIGHT</li><li>BOTTOM\_LEFT</li><li>BOTTOM\_RIGHT</li></ul>
In the UI, this property is represented under the "Logo" category with the property name "Layout".

### LogoWidth

Gets or sets the width of the logo image.

```csharp theme={null}
uint LogoWidth { get; set; }
```

#### Property Value

[uint](https://learn.microsoft.com/dotnet/api/system.uint32)

#### Examples

The following example demonstrates how to use the `LogoWidth` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.LogoWidth = 32;
```

#### 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.

```csharp theme={null}
Layout NavigationCubePosition { get; set; }
```

#### Property Value

Layout

#### Examples

The following example demonstrates how to use the `NavigationCubePosition` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.NavigationCubePosition = Layout.TOP_LEFT;
```

#### Remarks

This property allows you to set the position of the navigation cube. The available options are:
<ul><li>TOP\_LEFT</li><li>TOP\_RIGHT</li><li>BOTTOM\_LEFT</li><li>BOTTOM\_RIGHT</li></ul>
In the UI, this property is represented under the "Navigation Cube" category with the property name "Layout".

### Opacity

Gets or sets the opacity of the logo.

```csharp theme={null}
double Opacity { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

#### Examples

The following example demonstrates how to use the `Opacity` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.Opacity = 100;
```

#### 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.

```csharp theme={null}
Layout StateInfoPosition { get; set; }
```

#### Property Value

Layout

#### Examples

The following example demonstrates how to use the `StateInfoPosition` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.StateInfoPosition = Layout.TOP_LEFT;
```

#### Remarks

This property allows you to set the position of the state information. The available options are:
<ul><li>TOP\_LEFT</li><li>TOP\_RIGHT</li><li>BOTTOM\_LEFT</li><li>BOTTOM\_RIGHT</li></ul>
In the UI, this property is represented under the "StateInfo" category with the property name "Layout".

### TextColorStateInfo

Gets or sets the font color of the state information.

```csharp theme={null}
Color TextColorStateInfo { get; set; }
```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.windows.media.color)

#### Examples

The following example demonstrates how to use the `TextColorStateInfo` property:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.TextColorStateInfo = Colors.Red;
```

#### 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.

```csharp theme={null}
Color TopColor { get; set; }
```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.windows.media.color)

#### Examples

The following example demonstrates how to use the `TopColor` property:

```csharp theme={null}
import clr;
clr.AddReference("PresentationCore");
clr.AddReference("System");
clr.AddReference("System.Collections");
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.TopColor = Colors.Red;
```

#### 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".

## Methods

### CreateCoordinateSystem(string, string)

Creates a coordinate system for analyzing a position on a body.

```csharp theme={null}
IOperationsCSYSViewModel CreateCoordinateSystem(string name, string parentInfo = "Ground")
```

#### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the coordinate system to be created.

`parentInfo` [string](https://learn.microsoft.com/dotnet/api/system.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](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsCSYSViewModel.md)

An instance of [IOperationsCSYSViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsCSYSViewModel.md) representing the created coordinate system.

#### Examples

The following example demonstrates how to use the `CreateCoordinateSystem` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationView.CreateCoordinateSystem("CSYS");
```

#### 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.

```csharp theme={null}
IEnumerable<IOperationsLineDataSeriesViewModelBase> CreateSoundPressure(IList<string> bodyNames, IList<string> coordinateNames, double coarseningRate, double maxAreaFactor, double maxAspectRatio, double airDensity, double soundVelocity, double frequency, int start, int end, bool isDeicbelScale)
```

#### Parameters

`bodyNames` [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The list of entity names whose surfaces generate the sound pressure.

`coordinateNames` [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The list of coordinate system names used in the analysis.

`coarseningRate` [double](https://learn.microsoft.com/dotnet/api/system.double)

Percentage of the number of nodes remaining in the sampling result with respect to the initial number of nodes.

`maxAreaFactor` [double](https://learn.microsoft.com/dotnet/api/system.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](https://learn.microsoft.com/dotnet/api/system.double)

Maximum allowable aspect ratio of each element generated by the sampling result.

`airDensity` [double](https://learn.microsoft.com/dotnet/api/system.double)

Density of the air.

`soundVelocity` [double](https://learn.microsoft.com/dotnet/api/system.double)

Speed of sound in air.

`frequency` [double](https://learn.microsoft.com/dotnet/api/system.double)

The number of analysis results per second is determined as 10\*analysis frequency.

`start` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The start frame for the time range to be analyzed.

`end` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The end frame for the time range to be analyzed.

`isDeicbelScale` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The decibel scale.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[IOperationsLineDataSeriesViewModelBase](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsLineDataSeriesViewModelBase.md)>

An IEnumerable\`1 representing the sound pressure data series.

#### Examples

The following example demonstrates how to use the `CreateSoundPressure` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
animationview.CreateCoordinateSystem("Microphone", "Ground")
microphone = animationview.GetViewModelByName("Microphone")
microphone.Position = "0, 250, 0"
bodynames = List[str] (1)
bodynames.Add(r'Housing_01/FE_Housing')
microphoneNames = List[str] (1)
microphoneNames.Add(r'Microphone')
animationView.CreateSoundPressure(bodynames, microphoneNames, 10.0, 100.0, 3.0, 1.21E-09, 343000.0, 2000.0, 1, 100, False);
```

#### Remarks

This method uses the Rayleigh Integral to analyze the sound pressure generated by the vibrations on the system surface.

### GetViewModelByName(string)

Retrieves an instance of an entity based on the provided name.

```csharp theme={null}
IEntityBaseViewModel GetViewModelByName(string name)
```

#### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the entity to be retrieved.

#### Returns

IEntityBaseViewModel

An instance of IEntityBaseViewModel representing the entity with the specified name,
or `null` if no such entity exists.

#### Examples

The following example demonstrates how to use the `GetViewModelByName` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
rigidBody = animationview.GetViewModelByName("Rigid")
```

#### 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 returns `null`.

### GetViewSpecs()

Retrieves an array of view specifications corresponding to the number of loaded animation frames.

```csharp theme={null}
IViewSpec[] GetViewSpecs()
```

#### Returns

[IViewSpec](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IViewSpec.md)\[]

An array of [IViewSpec](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IViewSpec.md) instances that represent the positions of the animation camera for each frame,
or `null` if no frames are loaded.

#### Examples

The following example demonstrates how to use the `GetViewSpecs` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
dynamic_analysis.LoadAnimationFrames(50)
viewSpecs = animationview.GetViewSpecs()
```

#### 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 returns `null`.

### PlayAnimation()

Plays the loaded animation frames.

```csharp theme={null}
void PlayAnimation()
```

#### Examples

The following example demonstrates how to use the `PlayAnimation` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
dynamic_analysis.LoadAnimationFrames(50)
animationview.PlayAnimation()
```

#### 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.

```csharp theme={null}
void RecordingAnimation(string filePath, RecordingType recordingType, RecordingRangeType rangeType, int frameRate = 10, IViewSpec[] viewSpecs = null)
```

#### Parameters

`filePath` [string](https://learn.microsoft.com/dotnet/api/system.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](https://learn.microsoft.com/dotnet/api/system.int32)

The frame rate of the recording. The default value is 10 frames per second.

`viewSpecs` [IViewSpec](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IViewSpec.md)\[]

An array of [IViewSpec](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IViewSpec.md) 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

The following example demonstrates how to use the `RecordingAnimation` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
dynamic_analysis.LoadAnimationFrames(50)
viewSpecs = animationview.GetViewSpecs()
animationview.RecordingAnimation(r'D:\Test', RecordingType.MP4, RecordingRangeType.ActiveGroup, 10, specs)
```

#### 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 the `viewSpecs` parameter.

### SetViewSpec(IViewSpec)

Updates the camera information for the current animation frame position.

```csharp theme={null}
void SetViewSpec(IViewSpec viewSpec)
```

#### Parameters

`viewSpec` [IViewSpec](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IViewSpec.md)

The [IViewSpec](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IViewSpec.md) instance containing the new camera information.

#### Examples

The following example demonstrates how to use the `SetViewSpec` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
dynamic_analysis.LoadAnimationFrames(50)
viewSpec = ViewSpec()
viewSpec.Eye = Vector(10,20,30);
viewSpec.Target = Vector(5, 10, 15);
viewSpec.UpVector = Vector(1, 0, 0);
animationview.SetViewSpec(viewSpec)
```

#### Remarks

This method updates the camera information for the current position in the animation frames using the provided `viewSpec`.

### StopAnimation()

Stops the currently playing animation.

```csharp theme={null}
void StopAnimation()
```

#### Examples

The following example demonstrates how to use the `StopAnimation` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
page = applicationHandler.GetPage("page1");
animationView = page.CreateAnimation(dynamic_analysis, "ResultAnimation");
dynamic_analysis.LoadAnimationFrames(50)
animationview.PlayAnimation()
animationview.StopAnimation()
```

#### Remarks

This method stops the playback of the animation frames that are currently playing. If no animation is currently playing,
the method should handle this scenario appropriately, such as by displaying an error message or logging the issue.
