Dan,

Sorry, that is not currently possible.  In order to get individual
distances, you need to create them one by one using a nested loop.
Something like:

for at1 in cmd.index("resi 10"): \
   for at2 in cmd.index("resi 11"): \
       cmd.dist(None, "%s`%d"%at1, "%s`%d"%at2)

Cheers,
Warren

--
Warren L. DeLano, Ph.D.                     
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213           
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834     
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com      
 

> -----Original Message-----
> From: pymol-users-ad...@lists.sourceforge.net 
> [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of 
> Daniel Hasenpusch
> Sent: Tuesday, August 09, 2005 5:04 PM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] multi distance object to single distance objects
> 
> Hi,
>  
> I used the distance command:
>  
>  cmd.dist(" (/mol1///1/C)","(/mol1///2/C*)").
>  
> In pymol it creates a new distance object with all distances 
> from C in Residue 1 to every C in Residue 2.
> How can I split this object to single distance objects? 
> Or there are better possibilities because I want to write the 
> distances into an extra file, but I only get the last 
> distance as result.
>  
> Thanks in advance,
> 
> Daniel
>  
> 

Reply via email to