Peter, Assuming you have an existing selection
load my_prot.pdb select my_sel, resi 100 You can use the within/of operation... color cyan, my_prot within 15 of my_sel color red, my_prot within 10 of my_sel If you needed to exclude the region immediately around the selection, you could do so with color green, (my_prot within 7 of my_sel) and not (my_sel expand 4) By residue is also an option for coloring complete residues. color yellow, byres (my_prot within 7 of my_sel) Cheers, Warren -- mailto:war...@delsci.com Warren L. DeLano, Ph.D. Principal Scientist DeLano Scientific LLC Voice (650)-346-1154 Fax (650)-593-4020 > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Peter Teriete > Sent: Tuesday, June 22, 2004 8:33 AM > To: pymol-users@lists.sourceforge.net > Subject: [PyMOL] Coloring surfaces by distance > > Hi All, > > I know there was a question regarding this some time ago, but > didn't see any reply saying how to do it or a suggesting a > possible workaround. > > I have a surface coloured by the underlying residues and am > wondering if it is possible to colour an additional part of > the surface if it's within a certain distance of the selected > residues. > > Thanks, > > Peter > > > Dr Peter Teriete > Laboratory of Molecular Biophysics > Department of Biochemistry > University of Oxford > South Parks Rd. > Oxford > OX1 3QU > > Tel: +44 1865 275742 > Fax: +44 1865 275182 > >