On Thu, Jul 7, 2016 at 9:38 AM, Latévi Max LAWSON DAKU <max.law...@unige.ch>
wrote:

> Dear Jmol users/developers,
>
> I would like to be able to use a variable in a call to getProperty.
> So far, the following command works.
>
>      $ print getproperty('modelInfo.models[7].modelProperties.FreqValue')
>      129.529358
>
> But I rwould like to use a variable as follows
>
>      $ i=7
>      $ print getproperty('modelInfo.models[i].modelProperties.FreqValue')
>
>
i = 7
print getproperty('modelInfo.models['+i+'].modelProperties.FreqValue')
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to