Repository navigation
Plugin 3D Functional Group Replacer
3D Functional Group Replacer is an interactive 3D molecular editing plugin that allows substituting any selected atom (such as a hydrogen or terminal group) with common functional groups in 3D space with automatic bond alignment and constrained force-field relaxation.
| Repository | moleditpy_3d_functional_group_replacer |
| 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 | 3D Edit ▸ 3D Functional Group Replacer... |
| Extra dependencies |
rdkit, PySide6
|
See Official Plugins for the full catalogue.
-
Interactive 3D Picking by Default:
- Click any atom in the 3D viewport to select it as the target for replacement without needing to memorize atom index numbers.
-
Native 3D Selected Atom Label:
- Automatically displays a yellow point label (
"1") pinned to the selected atom in the 3D scene (identical to MoleditPy's native 3D geometry editing tools). Deselecting, replacing, or closing cleans up the label.
- Automatically displays a yellow point label (
-
60+ Curated Functional Groups:
- Spans 7 categories: Alkyl & Aliphatic, Alkenyl & Alkynyl, Aryl & Heteroaryl, Oxygen & Carbonyl, Nitrogen & Amine, Halogen, and Sulfur, Phosphorus & Boron.
- Attachment point
[*:1]dynamically bonds to the target atom's neighbor while preserving all existing connectivity and remaining neighbors.
-
Real-Time Search by Name, Abbreviation or SMILES:
- Filter groups instantly by category dropdown or by typing in the search box (e.g.
phenyl,amino,nitrile, shorthand likeCF3,COOH,OMe,tBu, or SMILES likec1ccccc1,C(=O)O,C#N).
- Filter groups instantly by category dropdown or by typing in the search box (e.g.
-
Constrained Force-Field Relaxation:
- Aligns the replacement group along the original bond vector at the group's own bond length, turns it to the orientation with the most clearance, and performs constrained MMFF94 / UFF force field minimization, optimizing the added group while holding the parent molecule rigid.
-
Full Undo/Redo & State Persistence:
- Pushes checkpoints to MoleditPy's undo stack (
Ctrl+Z) and preserves settings between sessions.
- Pushes checkpoints to MoleditPy's undo stack (
- Open a molecule and choose
3D Edit ▸ 3D Functional Group Replacer.... - Choose the desired group using the category and search controls.
- Replace terminal hydrogen starts checked. Click an explicit hydrogen to choose its bond direction, or a heavy atom to target an attached terminal hydrogen. A missing explicit terminal hydrogen is reported.
- Uncheck this option to replace the clicked atom itself; replacing a heavy atom removes its attached terminal hydrogens too.
- In Click to select, pick the target and press Replace Selected Atom. In Click to replace, each viewport click immediately applies the chosen group.
- Keep Relax group 3D geometry (MMFF/UFF) enabled for relaxation with the parent molecule fixed. Each replacement can be undone with Ctrl+Z.
Replace terminal hydrogen is on by default. Clicking a heavy atom targets its attached terminal hydrogen with the lowest atom index. Click an explicit hydrogen to choose its bond direction, or turn off the option to replace the clicked atom.
Click to select chooses a target for Replace Selected Atom; Click to replace applies the selected group immediately. Changing these options clears the selection. Group, click-mode, hydrogen and relaxation preferences are saved in settings.json.
- Official Plugins — the full plugin catalogue
- Plugin: Group Template — 2D substituent abbreviations palette
- Plugin: Bond Editor — table-based bond length and order editing
- Plugin: XYZ Editor — Cartesian coordinate table editor
This page documents 3D Functional Group Replacer v2.0.1, and was last updated on 2026-10-20. See REGISTRY/plugins.json for the current version.