Skip to content

Plugin Reaction Sketcher

Hiromichi Yokoyama edited this page Oct 28, 2026 · 9 revisions

Plugin: Reaction Sketcher

Reaction Sketcher integrates chemical reaction drawing tools directly into MoleditPy's 2D canvas, enabling the creation of publication-quality reaction schemes with arrows, mechanism annotations, brackets, conditions, and chemical formulas.

Repository moleditpy_reaction_sketcher_plugin
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 Extensions ▸ Reaction Sketcher... (adds an interactive reaction toolbar directly above the 2D canvas)
Extra dependencies None (uses RDKit, PySide6 from the MoleditPy environment)

See Official Plugins for the full catalogue.


1. Arrow types and electron pushing

The sketcher provides specialized reaction arrows:

  • Reaction arrows: Standard forward ($\rightarrow$), reversible/equilibrium ($\rightleftharpoons$), resonance ($\leftrightarrow$), retrosynthetic ($\Rightarrow$), dashed, and crossed "No Reaction" arrows.
  • Curved electron-pushing arrows:
    • Double-headed arrows: For heterolytic bond cleavage and electron pair movement.
    • Fish-hook (single-barbed) arrows: For homolytic radical mechanisms and single-electron transfers.
  • Angle snapping: By default, straight arrows snap to $15^\circ$ angle increments for clean horizontal and vertical alignments (hold Alt to bypass snapping).

2. Text, formulas, and chemistry auto-subscripting

  • Text annotations: Insert reagents, catalysts, temperatures, yields, and conditions directly into reaction schemes.
  • Chemistry mode: Automatically subscripts numerical characters in chemical formulas as you type (e.g. typing H2SO4 or t-BuOK automatically formats as H₂SO₄ or t-BuOK).
  • Typography controls: Full control over font family, font size, bold, italic, underline, and color.
  • Math symbols: Quick-insert buttons for plus ($+$), minus ($-$), and radical ($\bullet$) symbols.

3. Shapes, brackets, and grouping

  • Brackets: Insert square brackets [...], parentheses (...), or curly braces {...} around transition states or repeating units, with optional charge or label attachments.
  • Geometric shapes: Draw circles and ellipses to highlight functional groups or reaction centers.
  • Grouping: Select multiple items (atoms, bonds, text, arrows) and press Ctrl+G to group them into a single manipulable unit. Press Ctrl+U to ungroup.
  • Alignment and distribution: Align selected elements to top, bottom, left, right, or horizontal/vertical centers. Distribute items evenly with single-click actions.
  • Flip in place: Mirror the selection about its own centre, horizontally or vertically. Arrows and freehand strokes are reflected exactly, single-sided brackets swap side ([ becomes ]), and text labels stay upright and readable.

4. Canvas integration and undo/redo

  • Seamless molecule integration: Reaction elements coexist natively on the 2D canvas alongside RDKit molecules.
  • Full Undo/Redo: Every reaction drawing action, move, resize, and styling modification is integrated with MoleditPy's global undo stack (Ctrl+Z / Ctrl+Y).
  • Shift+Right-Click context menu: Access contextual properties, line widths, and arrowheads directly on any selected item.
  • Auto-start per project: Configure projects to automatically open with reaction drawing tools enabled.
  • Show C: Label skeletal carbons together with their implicit hydrogens. It works like the Bold/Italic/Underline buttons: with carbons selected it changes only those carbons, so pressing it while every carbon is labelled hides just the selected ones and leaves the rest as they are. With nothing selected it covers every carbon in the scene. The button reads the first selected carbon, and the labels stay put when the selection moves away. The whole state is saved in the project file and follows undo/redo.
  • Reaction-aware image export: While Reaction Mode is active, File -> Export -> 2D Formats (PNG and SVG) writes the reaction items along with the molecules.

Usage notes

Select structures and press Ctrl+Shift+→ to add a reaction arrow to their right and copy the selection beyond it. The operation supports Undo/Redo.


5. See also


This page documents Reaction Sketcher v4.0.1, and was last updated on 2026-10-28. See REGISTRY/plugins.json for the current version.

Clone this wiki locally