print_ribbon_view
Configures thick β-strand ribbons and a continuous backbone spine for gap-free, watertight 3D printing, then supports exporting the fused solid.
Instructions
Chunky β-arrow ribbons plus a continuous backbone "spine", tuned for rigid, gap-free 3D printing.
Configures the look developed for FDM printing: thick β-strand arrows
and a fat helix on the main object with loop cartoon hidden, plus a
separate <obj>_spine object showing PyMOL's cartoon tube (which
ignores secondary structure) running unbroken through the whole
backbone. The spine threads through the strand bodies, so when the two
objects are exported together the voxel step fuses them into one
watertight solid with no strand→loop discontinuity. The spine also acts
as internal rebar, reinforcing the thin junctions for print rigidity.
The style is set on the object and its spine only; other objects and PyMOL's global settings are left alone. The spine is carried through residues with no CA atom, such as GFP's chromophore, without renaming anything.
PyMOL draws a strand √2 times the strand_width and strand_thickness
settings, so the defaults (2.8, 2.0) give strands about 4.0 x 2.8 Å, and
a β-barrel's wall closes up. To see into a barrel, use
strand_width=2.0, strand_thickness=1.0, spine_in_strands=False.
Measured on GFP (2b3p): the see-through share of the barrel wall goes
from 8% to 29%; thinner strands alone leave 399 ų of spine bulging out
of them, which spine_in_strands=False takes to 1 ų; and it still
exports as one solid (unbridged at the chromophore, it split 69:31).
After calling this, export the fused solid with::
print_export(obj_name="<obj>",
groups="<obj>=(<obj> or <obj>_spine)",
representation="cartoon",
method="voxel", voxel_pitch=0.2)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| obj_name | Yes | PyMOL object name (e.g. "1abc"). | |
| spine_radius | No | Radius (Å) of the continuous backbone tube. Larger values give more internal reinforcement. Default 0.9. | |
| strand_width | No | β-strand width setting (PyMOL's cartoon_rect_length). PyMOL draws the strand √2 times this wide: the default 2.8 is about 4.0 Å. 2.0 (2.8 Å) opens the gaps in a β-barrel. | |
| strand_overlap | No | With spine_in_strands=False, the residues of spine kept at each end of a strand, where it fuses with the loop. At least 2: with 1, 10 of GFP's 22 strand ends lost their junction. | |
| bridge_modified | No | Carry the spine through residues that are peptide-linked on both sides but have no CA atom, such as GFP's chromophore (CRO), which otherwise break it. Done on the spine only, with per-atom cartoon_trace_atoms and PyMOL's no_smooth flag on the Cα either side; no atom is renamed or renumbered. Default true. | |
| spine_in_strands | No | True (default) runs the spine through the strands as well, where it shows as bumps along thin ones. False takes it out of each strand's interior, keeping strand_overlap residues at each end so the loops still fuse to the strands. | |
| strand_thickness | No | β-strand thickness setting (PyMOL's cartoon_rect_width). PyMOL draws the strand √2 times this thick: the default 2.0 is about 2.8 Å, 1.0 about 1.4 Å. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |