From: Myunggi Yi (myunggi_at_gmail.com)
Date: Tue Dec 05 2006 - 15:47:20 CST

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