Goal: Play OVITO/LAMMPS dumps in Blender 3.6 with per-frame updates, using a vertex instancer and a template sphere.
File: blender/ovito_viewport_anim.py
- Reads multi-frame LAMMPS dump (OVITO format).
- Builds one-vertex-per-atom mesh and instances a template object.
- Updates vertices per frame; playback in viewport.
- Lock interface during render to avoid instability.
- Blender 3.6
- A LAMMPS/OVITO dump file with
ITEM:headers.
- Open Blender → Scripting → load
blender/ovito_viewport_anim.py. - Set
ruta_archivoto your dump path. - Run script. Play timeline.
- This script focuses on viewport animation. For stable Cycles renders, bake to PC2 and instance via Geometry Nodes in a separate step.
- License: GPL-3.0-or-later.