Date: Wed Jul 01 2020 - 10:16:11 CDT

Dear Axel sir, 
Your suggestion helped me... But i could not get the difference between using within and exwithin. 
How they are different? I tried with the commands but could not find difference visually. 
How do they differ? 
Any way thanks for the quick response 


Sent from my Huawei phone

From: Axel Kohlmeyer <>
Date: Mon, 29 Jun, 2020, 4:43 PM
Cc: Vmd l <>
Subject: Re: vmd-l: selection of molecules in dynamic region
you need to have something to uniquely identify each layer, e.g. a custom residue id or segment name.
then you can use the "exwithin" selection keyword with a suitable cutoff. any atom/molecule matched by an "exwithin" selection of two layers each combined with the "and" keyword will be between those two layers. something like: (exwithin 6.0 of segname LY1) and (exwithin 6.0 of segname LY2)


On Mon, Jun 29, 2020 at 4:34 AM SHRAVANI NETHI . <> wrote:
Dear users,
I have a clay system with waters sandwiched between clay layers and around layers.
The layers are in continuous motion, and the layers are lablled with different segnames. the water molecules also have different segname for interlayer and surrounding water. The water molecules continuously move from solvation shell and interlayer region. Hence, I would like to see the motion of water molecules only between the interlayers through out trajectory where the interlayer region is dynamic.
Help me to select region between these dynamic layers so that I can add other keywords to this.


Dr. Axel Kohlmeyer
International Centre for Theoretical Physics, Trieste. Italy.