[Jmol-users] MF function question...

2016-06-30 Thread Otis Rothenberger
Bob, I’m going to define this global function in my Jmol Script: function mfa(){x=[];n={*}.molecule.max;for (var i = 1;i <= n; i++){x.push({molecule=i}.find("MF"))};return @x} The function works and returns the array to JavaScript via Jmol.evaluateVar, but it works with and without the @. Is

Re: [Jmol-users] incomplete cartoons in Calpha-only files

2016-06-30 Thread Herráez Sánchez Ángel
Same problem in both. Now I am testing with 2016.06.30 and Proteopedia is using 2016.06.22 (both 14.6.0) I am starting to suspect the file contents (mmCIF, assembly mmCIF) more than Jmol version itself -- Attend

Re: [Jmol-users] incomplete cartoons in Calpha-only files

2016-06-30 Thread J. Bays
What version of jmol are you using? Today’s or the one from the 27th? The latter had issues with protein structures. > On Jun 30, 2016, at 11:20 AM, Herráez Sánchez Ángel > wrote: > > Sorry! > I realize now that this could be due to Proteopeida now using mmCIF files

Re: [Jmol-users] incomplete cartoons in Calpha-only files

2016-06-30 Thread Herráez Sánchez Ángel
Sorry! I realize now that this could be due to Proteopeida now using mmCIF files instead of PDB files Not sure that is the cause, since I did not invent the idea of removed header, I saw that for sure -- maybe with some other example. (This bug was discovered while we were investigating

[Jmol-users] incomplete cartoons in Calpha-only files

2016-06-30 Thread Herráez Sánchez Ángel
We are seeing a problem in Proteopedia that apparently was not present before (it is unlikely that it had went unnoticed). I wonder if it is the result of upgrade to recent Jmol versions. (14.4 at least, 14.6 for sure) I am still seeing it with today's release 14.6.0_2016.06.30 It affects both

Re: [Jmol-users] [n = {*}[0].molecule;show n] bug

2016-06-30 Thread Robert Hanson
x = Jmol.evaluateVar(.) On Thu, Jun 30, 2016 at 10:43 AM, Otis Rothenberger wrote: > Excellent. That works. > > Related to the mf array this leads to, what’s the best way to hand a > JmolScript array to a page JavaScript function? The only way I know how to > do this

Re: [Jmol-users] [n = {*}[0].molecule;show n] bug

2016-06-30 Thread Otis Rothenberger
Excellent. That works. Related to the mf array this leads to, what’s the best way to hand a JmolScript array to a page JavaScript function? The only way I know how to do this is with Message Callback. Is there a more direct way? Otis -- Otis Rothenberger o...@chemagic.org http://chemagic.org

[Jmol-users] Jmol-14.6.0_2016.06.30

2016-06-30 Thread Robert Hanson
Sorry about that! Jmol.___JmolVersion="14.6.0_2016.06.30" bug fix: cartoon rendering broken in 2016.06.28 * Download Jmol-14.6.0_2016.06.30-binary.zip (66.5 MB) *-- Robert M. Hanson Larson-Anderson Professor of

Re: [Jmol-users] [n = {*}[0].molecule;show n] bug

2016-06-30 Thread Robert Hanson
My mistake. The way to do this is n = {*}.molecule.max On Thu, Jun 30, 2016 at 9:57 AM, Philip Bays wrote: > Otis: > > I confirm your observation using Safari. But in Firefox, n = 2. Safari > can’t count? > > > > On Jun 30, 2016, at 12:29 AM, Otis Rothenberger

Re: [Jmol-users] [n = {*}[0].molecule;show n] bug

2016-06-30 Thread Philip Bays
Otis: I confirm your observation using Safari. But in Firefox, n = 2. Safari can’t count? > On Jun 30, 2016, at 12:29 AM, Otis Rothenberger wrote: > > Bob, > > Go to your test2.htm page and load hexanal from PubChem (not Resolver). Enter > model kit mode and use