From: Josh Vermaas (joshua.vermaas_at_gmail.com)
Date: Thu Oct 01 2020 - 19:01:07 CDT

I don't think so. The way I'd do it is to *either* merge the two molecules
together (topotools mergemols,
https://www.ks.uiuc.edu/Research/vmd/plugins/topotools/#TOC-Utility-Functions)
first, or use the selection for a specific coordinate of interest. The
standard way of picking within 5 Angstroms of the point (5,-2,3) is:
((x-5)*(x-5)+(y+2)*(y+2)+(z-3)*(z-3)<5*5)

-Josh

On Thu, Oct 1, 2020 at 11:48 AM Asghar Razavi <asghar.razavi_at_gmail.com>
wrote:

> If I have two separate molecules in VMD, e.g. mol 0 and mol 1, is there a
> way to use the "within" command to select atoms from mol 0 that are within
> 5 angstrom of residue A in mol 1?
>
>