Script Commands

The basic format is script = "command | command | command etc"

Where command specifies any valid RasMol script command (see below). Multiple commands can be separated with a "|" or ";".
for example: script = "hbonds on" will cause the hydrogen bonds to be displayed (only works for some structures)
script = "select amino | color red"
will color all the amino acids red
script = "select pro | color green | select nitrogen | color yellow"
colors prolines green and nitrogens yellow

Usefull script commands


select item

Defines the currently selected region of the molecule. All subsequent commands that modify its colour or representation only affect the currently selected region.

Possilbe items include:
each of the amino acids, for example select trp or select asp,gly
number of the amino acid, for example select 35 or select 2-55 or select 5,32,56
an element, for example select iron or select fe
a subunit, for example select *A
nucleic
dna and rna
amino all amino acids
hetero
atoms other than protein or nucleic acid
ligand
all
more items


color colorchoices

possible colorchoices include: blue cyan greenblue orange red violet yellow black green magenta purple redorange white
also cpk structure charge amino chain group


background
colorchoices
command on

several commands can be assigned an on (or off) value these include:
hbonds
ssbonds
ribbons
spacefill
strands
wireframe

for example hbonds on or spacefill off