Too quick ! The following is even better for your purpose :
script INLINE @{Jmol math expression}
Runs the script command result of the Jmol math expression rather than from a
file. The math expression may be a simple single variable name or a more
complex expression. For example, var bgColor="red";script INLINE @{"background
" + bgColor} or var s = "[arg]";script INLINE @{"select " + s}.
Paul
Le 17 mai 2012 à 18:46, Otis Rothenberger a écrit :
> Bob,
>
> Is there a way to execute JmolScript that is in a string variable - i.e. an
> eval function approach?
>
> Otis
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users