Closed u-anurag closed 4 years ago
@cslotboom I have added optional arguments to animation function. Users can select start and end times if the ground motion is too long. Also, I tried to add a code to save the animation to .mp4 file and it worked on Jupyter Notebooks but couldn't make it work on the command line. I had to install ffmpeg writer to do that. Let me know if you have time to solve it.
if Movie!="none":
........Movfile = Movie + '.mp4'
........ani.save(Movfile)
Okay, that should be fine. My impression is that you will always need a ffmpeg writer to save the output - the user will have to have one before they can save. I will look into it though.
I added a function to save the animation. It works for both cmd and Jupyter notebooks. For Spyder, the users will need to change the backend to Qt4 or Qt5 in the Preferences tab.
That is good to hear - I assume a ffmpeg writer is it packaged with Anaconda then?
I am not using Anaconda. I use pure Python and installed ffmpeg writer to my system Path. We can always change how we save animation in the future. The input argument Movie will be there.