Turn .xyz molecular structures and trajectories into 3D .glb models you can insert into Microsoft PowerPoint, with play/pause animation.
- Single frame → a static 3D molecule.
- Multiple frames (vibrational modes, reaction paths, IRC scans, MD) → an animated, bone-rigged model that PowerPoint can play.
In PowerPoint, insert the file with Insert → 3D Models → This Device… (dragging the file onto a slide can skip the animation).
Or use it online: https://mzott.github.io/glibby/
Open glibby.html in any browser. It opens with a built-in demo (an iron complex vibrating along an N–N coupling mode). No install and no internet needed; your files never leave your computer.
Drop in an .xyz file, preview it, adjust colors and bonds, and click Download PowerPoint .glb.
A skill for Claude (Claude Code, Claude.ai) with a pure-Python CLI (standard library only, Python 3.8+).
Install by copying skill/glibby/ into your skills folder (for Claude Code: ~/.claude/skills/glibby/), then ask Claude to "convert this xyz to a PowerPoint glb".
You can also run the CLI directly:
python skill/glibby/scripts/glibby_cli.py inspect --input examples/valid_h2_bond_forming_breaking.xyz --output report.jsonpython skill/glibby/scripts/glibby_cli.py convert --input examples/valid_h2_bond_forming_breaking.xyz --glb-output h2.glb --output manifest.jsonStandard (multi-frame) XYZ: an atom-count line, a comment line (may be empty), then Element x y z per atom.
| Accepted | Rejected with a message naming the frame and line |
|---|---|
| Windows or Unix line endings, tabs | Last frame cut off or missing atoms |
| Empty comment lines; blank lines between frames | Atom count or atom order changing between frames |
Extra columns after z (charges, forces) |
Non-numeric, nan or inf coordinates |
1.2e-3 and Fortran 1.2D-3 numbers |
Invalid element symbols |
Lowercase/uppercase symbols (fe, FE → Fe) |
Blank line inside a frame |
| Huge molecules (see below) |
Atomic numbers (26 instead of Fe) are not converted silently. The web page shows a Convert atomic numbers to symbols button; the CLI stops and asks you to re-run with --atomic-numbers-to-symbols.
Animated models move each atom and bond with an invisible "bone" (one per atom plus one per bond). PowerPoint refuses to import a model whose mesh uses more than about 255 bones (in testing, 235 imported and 259 failed). glibby handles this automatically:
- Single-frame files are exported with no bones at all, so any size works.
- Animated files with more than 200 bones are split into several meshes of at most 200 bones each. They look and play the same. Have a large molecule that didn't work properly? Submit an issue.
examples/ has one small file per edge case, mostly an H₂ molecule stretching from 0.74 Å to 3.0 Å and back, so the H–H bond breaks and re-forms. The filename says what should happen:
valid_*: loads and exports.prompt_*: asks before converting atomic numbers.error_*: refused with a clear error.stress_*: large molecules. A 180-carbon (10,0) carbon nanotube, static and with an animated radial breathing mode (about 3 MB static, 6 MB animated). They exceed PowerPoint's bone limit, which glibby works around automatically.
examples/powerpoint_ready/ has two finished .glb files made from the nanotube examples, both confirmed to import and play in PowerPoint. Insert one to see what glibby produces without running anything. If these don't work on your PowerPoint, let me know via an issue.
Check the CLI against all of them:
python tests/check_examples.pyFor the web page, drag each example onto glibby.html.
- User guide: making a model with the web page and presenting it in PowerPoint.
- CLI reference: every command and option.
- How it works: input rules, bond detection, styling, bones and PowerPoint limits.
- Troubleshooting: import errors, input errors and bond fixes.
- Contributing: layout, tests, and keeping the two versions in sync.
MIT. See LICENSE.