Jump to content

Cubes

From PyMOL Wiki
Revision as of 01:41, 23 June 2025 by PedroLacerda (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Type Python Module
Download scripts/cubes.py
Author(s) Thomas Holder
License BSD-2-Clause
This code has been put under version control in the project Pymol-script-repo

This script adds the cubes and tetrahedra commands which create CGOs with cube or tetrahedron representations for all atoms in selection.

Usage

cubes [ selection [, name [, state [, scale [, atomcolors ]]]]]
tetrahedra [ selection [, name [, state [, scale [, atomcolors ]]]]]

Example

fetch 1rx1, async=0
cubes solvent & b < 50
tetrahedra solvent & b > 50