VMD-L Mailing List
From: Myunggi Yi (myunggi_at_gmail.com)
Date: Tue Dec 05 2006 - 15:47:20 CST
- Next message: Peter Freddolino: "Re: generating psf file for a lipid: vmd looking for c-term and n-term ?"
- Previous message: Mohamed Osman: "generating psf file for a lipid: vmd looking for c-term and n-term ?"
- Next in thread: Axel Kohlmeyer: "Re: Getting coordinates"
- Reply: Axel Kohlmeyer: "Re: Getting coordinates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear VMD users,
How can I extract the x, y, and z coordinate in the script?
I did something like the following
>Main< (memb-amt) 50 % set sel [atomselect 0 "name C6"]
atomselect0
>Main< (memb-amt) 51 % $sel num
1
>Main< (memb-amt) 52 % $sel get {x y z}
{6.65500020981 24.7140007019 51.9319992065}
>Main< (memb-amt) 53 % set crd [$sel get {x y z}]
{6.65500020981 24.7140007019 51.9319992065}
>Main< (memb-amt) 54 % lindex $crd 0
6.65500020981 24.7140007019 51.9319992065
How can I extract x coord. or y coord. independently?
Have a nice day.
-- Best wishes, MYUNGGI YI
- Next message: Peter Freddolino: "Re: generating psf file for a lipid: vmd looking for c-term and n-term ?"
- Previous message: Mohamed Osman: "generating psf file for a lipid: vmd looking for c-term and n-term ?"
- Next in thread: Axel Kohlmeyer: "Re: Getting coordinates"
- Reply: Axel Kohlmeyer: "Re: Getting coordinates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]