Repository navigation
Plugin glTF Exporter
glTF Exporter saves the MoleditPy 3D view as a glTF 2.0 model, the open 3D format that Blender, PowerPoint, Windows 3D Viewer, web viewers and most 3D software read. The file keeps the colors, gloss and transparency of the view, and it carries the current camera.
| Repository | moleditpy_gltf_exporter |
| Author | HiroYokoyama |
| Supported OS | Windows, macOS, Linux, WSL |
| Supported Python | >=3.9, <3.15 |
| Supported MoleditPy | >=5.0.0, <6.0.0 |
| First-party plugin license | LGPL-3.0-or-later |
| Menu location | Export ▸ Export 3D Scene as glTF... |
| Extra dependencies | None beyond MoleditPy (NumPy, PyVista, PySide6) |
See Official Plugins for the full catalogue.
The plugin takes whatever the 3D view shows, so it works with other plugins without plugin-specific code:
- Molecules in any 3D style, with element colors and half-colored bonds.
- CIF Viewer crystals, with unit-cell lines and axes turned into tubes.
- Orbitals and other isosurfaces from the cube viewers, with their transparency.
- Other meshes that plugins add to the 3D view.
Lines and wireframes become tubes as thick as they look on screen. Colors are converted from sRGB to the linear values glTF requires, so the model does not look washed out.
Text labels, 2D overlays, point sprites and volume renderings have no mesh and are left out. The status bar reports how many objects were skipped.
- Rotate and zoom the 3D view in MoleditPy.
- Choose
Export ▸ Export 3D Scene as glTF.... The entry is also in the Export button's drop-down. - Pick the format in the file dialog's type list, and save.
| Format | File |
|---|---|
glTF Binary (.glb) |
One compact binary file. The default. |
glTF, single file (.gltf) |
JSON text with the geometry embedded, for tools that want text. |
Typing .glb or .gltf at the end of the file name chooses the format too.
The model is rotated so that +X is right, +Y is up and +Z points toward the viewer, as in the MoleditPy view. The file also contains a camera node, MoleditPy view:
- a perspective camera with the view's angle, or
- an orthographic camera of the same height when the view uses parallel projection.
Viewers that use glTF cameras, such as Blender (set it as the active camera), show the model as MoleditPy did. Other viewers open the model from the front, which is the same direction.
One glTF unit is one angstrom. Scale the model in the target program if it needs another size.
Paste 3D to PowerPoint shares the same capture code and also saves a .glb. Use that plugin to paste into PowerPoint. Use this one when only a file is needed: it adds the .gltf format and the camera, and has no settings.
- Official Plugins — the full plugin catalogue
- Plugin: Paste 3D to PowerPoint — native 3D models on PowerPoint slides
- Plugin: Blender Export — a Blender script that rebuilds the molecule
- Plugin: High Resolution Imager — still images of the 3D view
This page documents glTF Exporter v1.0.0, and was last updated on 2026-11-14. See REGISTRY/plugins.json for the current version.