Ansys Learning Forum Forums Discuss Simulation General Mechanical Timestep range set for animation export Reply To: Timestep range set for animation export

Pedram Samadian
Ansys Employee

Hi,

Thanks for contacting us. The following Python script helps to export an animation from the evolution of Total Deformation throughout the simulation from a specific view (ISO in this case) with the specified frame numbers and video duration in Ansys Mechanical.

########################################################

cam = Graphics.Camera
cam.SetSpecificViewOrientation(ViewOrientationType.Iso)
 
Graphics.ResultAnimationOptions.NumberOfFrames = 100
Graphics.ResultAnimationOptions.Duration = Quantity(2, ‘s’)
 
totalDeform = DataModel.GetObjectsByName(“Total Deformation”)[0]
totalDeform.ExportAnimation(“C:\\Users\\pesamadi\\Downloads\\test\\test.mp4”,GraphicsAnimationExportFormat.MP4)

######################################################

I will ask the developers about the required commands to specify the start and end times of the animation and then update my respond.

Thanks,

Pedram