Bob-
Thanks. I see the relationship from the atomInfo data now. I missed it
before.
I guess that I need to change to jmol.js, but doing so is going to bring
down my house of cards!
Otis
On Wed, Feb 17, 2010 at 9:24 AM, Robert Hanson <[email protected]> wrote:
> the [1] there is not an atom number. It's just atomIndex + 1. (Because [0]
> means "last element" in this scripting language.)
>
>
> But just about all of these are now much more efficiently retrieved using,
> for example:
>
> jmolEvaluate("{atomindex=1}.color")
>
>
>
>
> On Tue, Feb 16, 2010 at 8:54 PM, Otis Rothenberger <[email protected]>wrote:
>
>> Hello-
>>
>> I have been "getting" atom properties by atom number:
>>
>> e.g.
>> document.getElementById("appletID").getPropertyAsString("atomInfo[1].color")
>>
>> I am working with some script issues that force me to get atom properties
>> by atomIndex. Is there any way to use atomIndex as the atomInfo array index?
>> I've tried various string expressions (e.g. atomInfo['atomIndex=1'].color)
>> for the index value, but I'm not having any luck.
>>
>> Otis
>>
>> --
>> Otis Rothenberger
>> http://chemagic.org
>>
>>
>> ------------------------------------------------------------------------------
>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> http://p.sf.net/sfu/solaris-dev2dev
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
>
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Otis Rothenberger
http://chemagic.org
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users