From: Norman Geist (norman.geist_at_uni-greifswald.de)
Date: Sun Oct 21 2018 - 04:02:15 CDT

You can access the components of a list with "lindex" (usual TCL). In your
case :

 

set centerz [lindex $com1 2]

 

Greets

Norman Geist

 

Von: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] Im Auftrag von
McGuire, Kelly
Gesendet: Sonntag, 21. Oktober 2018 01:21
An: VMD Mailing LIst <vmd-l_at_ks.uiuc.edu>
Betreff: vmd-l: Measure Center Question

 

Is there a way to get only the z-component out of the measure center
command?

 

If I do this, set com1 [measure center $AMT weight mass], I would like to
get the z-coordinate/component

only from that measure command.

 

 

 

Kelly L. McGuire

PhD Scholar

Biophysics

Department of Physiology and Developmental Biology

Brigham Young University

LSB 3050

Provo, UT 84602