Repository navigation
Plugin Molecule Styler
Molecule Styler adds a dock panel to the right of the MoleditPy window that lists every disconnected molecule in the 3D scene and lets you give each molecule, or each individual atom, its own display style: CPK, Custom CPK, Ball & Stick, Stick, Wireframe or Hidden.
| Repository | moleditpy_molecule_styler |
| 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 |
View ▸ Molecule Styler Panel, and the Molecule Styler entry of the 3D Style selector |
| Extra dependencies | None (uses PyVista, PySide6, NumPy from the MoleditPy environment) |
See Official Plugins for the full catalogue.
Open it from View ▸ Molecule Styler Panel, or simply choose Molecule Styler in the 3D Style selector — the panel opens by itself when the style is selected and never opens a second copy.
- Each disconnected molecule is one row (
Molecule 1 C2H4O2) with a style combo box. - Expand a molecule to style single atoms. Atoms are listed by the host's unique, 0-based atom id (
C (id 0)). - A molecule row shows
(mixed)when its atoms do not share one style. - All + Apply sets every atom at once, Reset styles returns everything to Ball & Stick, Refresh rebuilds the list.
| Style | Atoms | Bonds |
|---|---|---|
| CPK | van der Waals spheres | hidden inside the spheres |
| Custom CPK | 10–300% of the VDW radius (Size %) | thin sticks where shrunken spheres leave a gap |
| Ball & Stick | small spheres | cylinders (uniform grey between two Ball & Stick atoms) |
| Stick | spheres as thick as the bond | thick cylinders in the atom colours |
| Wireframe | none | thin lines in the atom colours |
| Hidden | none | none |
A bond is hidden if either end atom is Hidden. Between two atoms of different styles it takes the thinner of the two bond radii. Double and triple bonds are drawn as two or three parallel cylinders. Radii, resolutions, bond colour and lighting follow your normal MoleditPy settings, and colours set by other plugins (for example Atom Colorizer) are respected.
New molecules start at Ball & Stick: when a different molecule replaces the current one, the styles are cleared.
Selecting a molecule or atom row marks its atoms in the 3D view with a yellow translucent shell, the same look as the 3D Edit selection. The highlight is redrawn after every render. Clicking empty panel space or Unselect clears the selection and the highlight.
Styles are stored in the project file against each atom's unique id, so they stay on the same atoms when the molecule is re-embedded or the project is reopened. When a project with styles (or with this style active) is opened, MoleditPy switches to Molecule Styler automatically and the 3D Style selector shows it as selected. File ▸ New clears the styles.
Custom CPK provides a per-molecule/per-atom Size % from 10–300% of the van der Waals radius; 100% matches CPK. Thin sticks connect gaps between smaller spheres. Click empty panel space to clear the selection.
- Official Plugins — the full plugin catalogue
- Plugin: Atom Colorizer — per-atom colours
- Plugin: Bond Colorizer — per-bond colours
- Plugin: Advanced Rendering — PBR, shadows and other 3D styles
This page documents Molecule Styler v1.0.0, and was last updated on 2026-11-14. See REGISTRY/plugins.json for the current version.