Re: [Jmol-users] extract min and max resNo to javascript

2011-01-26 Thread Angel Herráez
On 26 Jan 2011 at 9:53, Robert Hanson wrote: > oh, yes! It's very valuable. > > 2011/1/26 Angel Herráez > Mmmm... I see that jmolEvaluate() is not in the doc for Jmol.js > Maybe we should add it there (under Advanced) Done. Will be online in the next update of the website, http://jmol.

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-26 Thread Robert Hanson
oh, yes! It's very valuable. 2011/1/26 Angel Herráez > Mmmm... I see that jmolEvaluate() is not in the doc for Jmol.js > Maybe we should add it there (under Advanced) > > > > > -- > Special Offer-- Download ArcSight Logg

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-26 Thread Angel Herráez
Mmmm... I see that jmolEvaluate() is not in the doc for Jmol.js Maybe we should add it there (under Advanced) -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Robert Hanson
if (jmolDebugOn) { memVar1 += msg1 + "~"; memVar2 += msg2 + "~"; } > msg1Old = msg1; > msg2Old = msg2; > } > > > -- > Otis Rothenberger > Department of Chemistry > Illinois State University Normal, IL 61790-4160 > http://chemagic.org > > ---

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Otis Rothenberger
1790-4160 http://chemagic.org From: "Otis Rothenberger" Sent: Tuesday, January 25, 2011 7:39 PM To: jmol-users@lists.sourceforge.net Subject: Re: [Jmol-users] extract min and max resNo to javascript Bob, That's interesting. Does this me

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Otis Rothenberger
Bob, That's interesting. Does this mean that you do not have to use the WAIT? Otis var x = eval(jmolEvaluate("[" + {*}.resno.min + "," + {*}.resno.max + "]")) would get you both of them at once. 2011/1/25 Angel Herráez Hello all This must be trivial, but I'm stuck I need to extract the min

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Otis Rothenberger
t; -1 || msg2.indexOf("assign bond") > -1) { doUFF(num); }if (jmolDebugOn) { memVar1 += msg1 + "~"; memVar2 += msg2 + "~"; }msg1Old = msg1;msg2Old = msg2;} -- Otis Rothenberger Department of Chemistry Illinois State University Normal, IL 61790-416

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Robert Hanson
var x = eval(jmolEvaluate("[" + {*}.resno.min + "," + {*}.resno.max + "]")) would get you both of them at once. 2011/1/25 Angel Herráez > Hello all > > This must be trivial, but I'm stuck > > I need to extract the minimum and maximum residue nurmber from a one-chain > pdb file into > a Javascri

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Angel Herráez
Great, Alex, thanks I had forgotten about jmolEvaluate() This does the trick: alert( jmolEvaluate( "{*}.resno.min;" ) ); -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-

Re: [Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Alexander Rose
Hi, I think you can build on this: jmolScriptWait('var foo = "bar";'); var msg = jmolEvaluate( "script('echo @foo');" ); Alex Am 26.01.2011 um 01:05 schrieb Angel Herráez: > Hello all > > This must be trivial, but I'm stuck > > I need to extract the minimum and maximum residue nurmber from

[Jmol-users] extract min and max resNo to javascript

2011-01-25 Thread Angel Herráez
Hello all This must be trivial, but I'm stuck I need to extract the minimum and maximum residue nurmber from a one-chain pdb file into a Javascript variable. The Jmol commands are m1 = {*}.resno.min m2 = {*}.resno.max but I don't know how to pass those to a javascript variable (I need to ch