Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Export 3D graphic objects as spinning animations in GIF format
ResourceFunction["ExportRotatingGIF"]["dest.gif",graphics] exports an animated GIF file of graphics cyclically rotating in three dimensions. |
| "FPS" | 36 | frames per second to render |
| "Parallel" | False | whether to use parallel kernels |
| "Axis" | “z" | which axis to rotate around |
| "InitialViewPoint" | {3,0,0} | initial view point |
| "Graphics3DOptions" | {} | options to pass to Graphics3D |
| "FramesDirectory" | Automatic | directory to store frames making up the GIF |
| "Duration" | 3 | time (in seconds) for one rotation |
Export 3D plots as animations:
| In[1]:= |
| Out[1]= | ![]() |
Export Graphics3D objects to animated GIF file:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
Use ExportRotatingGIF to spin 3D plots of molecules around x-, y- and z-axes:
| In[3]:= | ![]() |
| Out[3]= | ![]() |
Export spinning Graph3D objects:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
Export a styled graph animation that revolves once every second:
| In[5]:= | ![]() |
| Out[5]= | ![]() |
Export a MeshRegion object with axes and lighting:
| In[6]:= | ![]() |
| Out[6]= | ![]() |
Specify the plane of rotation about one of three axes:
| In[7]:= |
| Out[7]= | ![]() |
| In[8]:= |
| Out[8]= | ![]() |
| In[9]:= |
| Out[9]= | ![]() |
Control the smoothness of the animation by changing the frames per second:
| In[11]:= | ![]() |
| Out[11]= | ![]() |
Set a directory in which to save the images of the intermediate frames:
| In[12]:= | ![]() |
| Out[13]= | ![]() |
Include additional options to be exported with a graphics complex:
| In[14]:= | ![]() |
| Out[14]= | ![]() |
Modify the initial view point of the animation:
| In[15]:= | ![]() |
| Out[15]= | ![]() |
The "Parallel" option speeds up frame generation (e.g. an n-fold speed up for n CPUs):
| In[16]:= |
| Out[16]= | ![]() |
| In[17]:= |
| Out[17]= |
| In[18]:= |
| Out[18]= |
Export a highlighted graph spun about the z axis:
| In[19]:= | ![]() |
| Out[19]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License