ChimeraX docs icon

Command: set

Usage:
set  keyword  value  [ keyword2  value2 ...]

The set command sets various global parameters. If given without arguments, it reports the current settings in the Log. See also: preset, graphics, making images

Parameter keyword:

Parameters that are not specified remain at their current values.

set bgColor  color-spec
~set bgColor
Set background color. Any transparency in the color is ignored; however, images can be saved with a (completely) transparent background using the save command option transparentBackground true. Using ~set bgColor restores background color according to the user preference. Background color can also be changed with graphics bgColor.
set subdivision  level
Set subdivision level (initial default 1), where higher values increase the apparent smoothness of stick, ball-and-stick, and sphere display styles by increasing the number of triangles used to draw them. At a given subdivision level, the fineness of triangulation is adjusted automatically depending on the display contents (e.g., the number of atoms displayed), within the range of 10-2000 triangles per atom and 24-160 per bond. Alternatively, a fixed number of triangles per atom or bond can be specified with the graphics quality command. Using set subdivision (or specifying a quality value with graphics quality) returns to automatic adjustment, overriding any fixed values specified beforehand. For cartoon subdivision settings, see graphics quality or cartoon style. For molecular surfaces, see the gridSpacing option of surface.

UCSF Resource for Biocomputing, Visualization, and Informatics / April 2020