First animation

Below is a script that generates an animation of graphene breathing in blender:

import sisl
from sisl.viz import merge_plots

plots = []
for color, opacity, scale in zip(["red", "orange", "green"], [1, 0.2, 1], [0.5, 1, 0.5]):
    geom_plot = sisl.geom.graphene().plot(backend="blender",
        atoms_style={"color": color, "opacity": opacity},
        bonds_scale=0.01,
        atoms_scale=scale
    )

    plots.append(geom_plot)

merge_plots(*plots, backend="blender", composite_method="animation", interpolated_frames=50).show()
View post on imgur.com