Line color

From PyMOLWiki
Jump to navigation Jump to search

Overview

Line_color controls per atom/bond coloring in objects or selections.

Line_color changed using set_bond. (Also, line_width was changed using set_bond)

Syntax

# set the color of the lines to colorName
set line_color, colorName

# set per atom/bond line colors (see examples)
set_bond line_color, colorName, objSel

# example
fetch 1te1
as lines
orient
# draw all lines red
set line_color, red
# draw just chain A, blue
set_bond line_color, marine, blue
# color the lysines magnesium!
set_bond line_color, magnesium, resn lys

See Also