Skip to content

Plugin XYZ Editor

Hiromichi Yokoyama edited this page Oct 19, 2026 · 6 revisions

Plugin: XYZ Editor

XYZ Editor provides a comprehensive table-based inspector and editor for Cartesian atomic coordinates, element symbols, custom labels, and ghost atoms, with interactive two-way synchronization with MoleditPy's 3D viewport.

Repository Bundled in moleditpy-plugins (plugins/XYZ_Editor)
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 ▸ XYZ Editor...
Extra dependencies None (uses RDKit, NumPy, PyVista, PySide6 from MoleditPy)

See Official Plugins for the full catalogue.


1. Key Features

  • Bidirectional 3D viewport selection:
    • Clicking any atom in the 3D viewport highlights and scrolls to its corresponding row in the table.
    • Selecting rows in the table instantly places a visual halo/glyph over the atoms in the 3D viewport.
    • Box selection mode: Drag a rectangular marquee across the 3D viewport to select multiple atoms at once.
    • Whole fragment selection: Check "Select whole molecule on 3D click" to select entire covalently-bonded components (e.g. ligands, solvents, counter-ions) with a single click.
  • Coordinate & symbol editing:
    • Edit X, Y, Z coordinates directly in the table with floating-point precision.
    • Modify element symbols or specify custom labels (e.g. ghost atoms, labeled dummy centers).
    • Click Apply to View to commit table modifications back to the active 3D model.
  • Immediate structural transformations:
    • Adjust H: Intelligently adds missing hydrogens with realistic 3D geometries or removes excess hydrogens from selected atoms (or the whole structure).
    • Duplicate with offset: Clone selected atoms or the whole molecule with user-defined $\Delta X, \Delta Y, \Delta Z$ coordinate translations.
    • Delete Atoms: Immediately remove chosen atoms and clean up dangling bonds.
  • Import / Export:
    • Save as XYZ...: Export the edited table directly as a standard .xyz file.
    • Copy to Clipboard: Quick tab-delimited copying for spreadsheets or script inputs.

2. Typical Workflow

  1. Open 3D Edit ▸ XYZ Editor....
  2. Inspect the table listing atom index, symbol, and Cartesian coordinates $(X, Y, Z)$.
  3. Select an atom directly in the 3D view or click rows in the table.
  4. Tweak coordinates, adjust hydrogens, or duplicate fragments.
  5. Click Apply to View to update the MoleditPy 3D scene.

Usage notes

Coordinate edits preserve the molecule’s atom properties and require finite values. Reload the table if atom indices change.


3. See also


This page documents XYZ Editor v2026.10.19, and was last updated on 2026-10-19. See REGISTRY/plugins.json for the current version.

Clone this wiki locally