From: Axel Kohlmeyer (
Date: Thu Apr 10 2014 - 09:57:41 CDT

On Thu, Apr 10, 2014 at 10:09 AM, Beat Meier <> wrote:
> I am trying to color a surface model of a protein such that a custom defined residue has a different color than the rest that I color grey.
> If I plot two Surf representations of the protein for which one I only select the colored residue, I do not get a nice picture. Any better procedures?

you can color by some per atom parameter (Occupancy, User, Mass,
Charge, ...) and then in the VMD console create a selection for the
residue in question and for all other residues and then use the script
interface to assign different values to those. e.g.:

set sel1 [atomselect top {resid 124}]
set sel2 [atomselect top {not resid 124}]

$sel1 set occupancy 0.0
$sel2 set occupancy 1.0

redraw and you are done.


p.s.: i tend to prefer QuickSurf over Surf

> Thanks
> Beat

Dr. Axel Kohlmeyer
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.