next up previous contents index
Next: Collective Variables Interface (Colvars) Up: VMD Script Commands for Previous: Revert all RGB values   Contents   Index

Coloring Trick - Override a Coloring Category

There is currently no user-defined coloring method. This makes it hard to color residues by property ``X'' if X is not already defined in VMD. It is possible to get around this limitation somewhat by overriding one of the values in the PDB or PSF. For instance, suppose you wanted to color the atoms by the distance of the atom from a given point. One way is to compute the distance and put it in either the occupancy or beta field of the PDB file. Then when the molecule is colored by occupancy it is actually coloring by distance.

You could also override, say, the segment name field or even the residue name. Don't override the atom name unless you are really desperate as VMD uses it to determine which residues are proteins and nucleic acids, and hence which residues can be drawn as a tube or ribbon.


next up previous contents index
Next: Collective Variables Interface (Colvars) Up: VMD Script Commands for Previous: Revert all RGB values   Contents   Index
vmd@ks.uiuc.edu