From: Norman Geist (
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]



Norman Geist


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


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


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


Department of Physiology and Developmental Biology

Brigham Young University

LSB 3050

Provo, UT 84602