Angel (Eric and Luciano),
OK, now I get it. jmolEvaluate and jmolEvaluateVar are accessible with
JSmol.min.js. I just need to evaluate something that's "evaluatable!" Show
WhatEver is not.
Otis
----------------------------------------
From: "Angel Herráez" <angel.herr...@uah.es>
Sent: Sunday, January 18, 2015 6:44 PM
To: jmol-users@lists.sourceforge.net
Subject: Re: [Jmol-users] JSmol: how to put a protein's sequence into a
javascript variable
> jmolEvaluate is available via this route (Bob???), hence my use of callbacks.
I understand that Jmol.evaluateVar() is the way to go; please see:
http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Functions#evaluateVar
So, rewriting Eric's code, it could be (Javascript):
var theSeq = Jmol.evaluateVar ( myJmol, '{chain=a}.find("sequence")' );
where "myJmol" is the name of your Jmol object
You should certainly forget about Jmol2.js -- that is a transitional file to
be able to use the new JSmol object withot rewriitng the old (Jmol.js-based)
syntax. I believe that's not Luciano's case.
----------------------------------------
El software de antivirus Avast ha analizado este correo electrónico en busca de
virus.
www.avast.com
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users