From: Peter Freddolino (petefred_at_ks.uiuc.edu)
Date: Thu Mar 01 2007 - 09:28:55 CST

Please see the VMD manual entry on manipulating atom selections:
http://www.ks.uiuc.edu/Research/vmd/current/ug/node149.html

sel.get('charge') is probably what you're after here.
Peter

Per Jr. Greisen wrote:
> Hi,
>
> I am doing some calculation in vmd and would like to write the script in
> python. How to I convert the following into python
>
> set tp_charge [$tmp get {charge}]
>
> thanks in advance
>
>
>