Re: [Jmol-users] Is the restore coord command compatible with files with connect records?

2010-05-23 Thread Robert Hanson
see http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11.zip By the way, a quick way to reload the original coordinates is just to use load XYZ "" This doesn't reload the file, it just replaces the current coordinates with those in the file. So the orientation and rendering don't change the

Re: [Jmol-users] Is the restore coord command compatible with files with connect records?

2010-05-23 Thread Robert Hanson
That's fixed. Will upload. On Sun, May 23, 2010 at 11:14 PM, Robert Hanson wrote: > Ah, yes. Not sending the signal to recalculate shapes after restore. For > now, add this after the restore: > > select *;translateselected {0 0 0} > > That sends the signal that the atoms have moved positions and

Re: [Jmol-users] Is the restore coord command compatible with files with connect records?

2010-05-23 Thread Robert Hanson
Ah, yes. Not sending the signal to recalculate shapes after restore. For now, add this after the restore: select *;translateselected {0 0 0} That sends the signal that the atoms have moved positions and that the cartoon has to be recalculated. On Sun, May 23, 2010 at 9:47 PM, Wayne Decatur wrot

Re: [Jmol-users] Clear JME

2010-05-23 Thread Robert Hanson
My "Nah" is in reference to "void" having anything to do with it. JME here is in reference to a named object. It's possible the browser has a bug that gets confused when a named object and an id object have the same label, but it really should be OK -- that's what we do with "JmolApplet0". Suppose

[Jmol-users] Is the restore coord command compatible with files with connect records?

2010-05-23 Thread Wayne Decatur
I was using the compare command to visualize how the monomers of an asymmetric homodimer are related. So I loaded an edited version of 3lqq into the Jmol application (vers 12.0.RC12). (The file is at http://drop.io/tykyjxt/asset/3lqqab-pdb ) Then I ran the following commands by entering one at

Re: [Jmol-users] Clear JME

2010-05-23 Thread Otis Rothenberger
Phil, Yikes! Now you really have my attention. void someFunction() is legit JavaScript syntax. It says, "execute the function, but don't return anything." Usually, this is used to keep an href, which acts (tries to load a url) on a return value from acting. But it's legit, so it will work in o

Re: [Jmol-users] Clear JME

2010-05-23 Thread Philip Bays
On May 23, 2010, at 7:15 PM, Otis Rothenberger wrote: > Hi Again Phil, > > Salmon Cakes. Sounds good!! Actually, I am on a Mac using Safari. And I call a function because I want to do some other stuff in setting up the problem. The following is my preliminary function script. The first

Re: [Jmol-users] Clear JME

2010-05-23 Thread Otis Rothenberger
Hi Again Phil, Salmon Cakes. Anyway, It sounds like you may be using the following context: href = "javascript: document.getElementById("JME").reset() That may require a preceding void() (maybe "void" also works). This all depends on what is returned by reset(). This aspect (uncertainty) of r

Re: [Jmol-users] Clear JME

2010-05-23 Thread Robert Hanson
nah. On Sun, May 23, 2010 at 5:23 PM, Philip Bays wrote: > hmmm. > >void JME.reset(); > > seems to work. > > > On May 23, 2010, at 6:08 PM, Otis Rothenberger wrote: > > > Phil, > > > > Reset works on my Windows/Firefox. Let me play with another idea that I > > have, and I'll get back to

Re: [Jmol-users] Jmol radio ui works, but no result

2010-05-23 Thread Jonathan Gutow
Jay, What machine are you testing it on. There was a bug in the MacOS 10.6 JVM that was causing problems with execution of script calls using the javascript interface. It seems to have been fixed in the latest update. If you are using a Mac and a webkit browser for testing make sure you are

Re: [Jmol-users] Clear JME

2010-05-23 Thread Philip Bays
hmmm. void JME.reset(); seems to work. On May 23, 2010, at 6:08 PM, Otis Rothenberger wrote: > Phil, > > Reset works on my Windows/Firefox. Let me play with another idea that I > have, and I'll get back to you. Wife calling me for dinner. I'll write > back in about an hour. > >

Re: [Jmol-users] Clear JME

2010-05-23 Thread Otis Rothenberger
Phil, Reset works on my Windows/Firefox. Let me play with another idea that I have, and I'll get back to you. Wife calling me for dinner. I'll write back in about an hour. Otis On 5/23/2010 6:01 PM, Philip Bays wrote: > Otis: > > That is what I thought too.But it does not do it for me. St

Re: [Jmol-users] Clear JME

2010-05-23 Thread Philip Bays
Otis: That is what I thought too.But it does not do it for me. Stops the processing at that point. Phil On May 23, 2010, at 5:26 PM, Otis Rothenberger wrote: > Phil, > > document.getElementById("JME").reset() > > where JME is the ID of the applet. > > > Otis > > On 5/23/2010 4:44 PM,

Re: [Jmol-users] Clear JME

2010-05-23 Thread Otis Rothenberger
Phil, document.getElementById("JME").reset() where JME is the ID of the applet. Otis On 5/23/2010 4:44 PM, Philip Bays wrote: > What is the javascript statement to clear the drawing in JME? > > document.getElementById("JME").??? > > J. Philip Bays > Professor of Chemistry > Depar

Re: [Jmol-users] Clear JME

2010-05-23 Thread Angel Herráez
From http://www.molinspiration.com/jme/doc/jme_functions.html public void JME.reset() clears the drawing canvas (deletes all molecules) -- ___ Jmol-users mailing list Jmol-

[Jmol-users] Clear JME

2010-05-23 Thread Philip Bays
What is the javascript statement to clear the drawing in JME? document.getElementById("JME").??? J. Philip Bays Professor of Chemistry Department of Chemistry and Physics Saint Mary's College Notre Dame, IN 46556 (574) 284-4663 pb...@saintmarys.edu

Re: [Jmol-users] Jmol radio ui works, but no result

2010-05-23 Thread Angel Herráez
Hello Jay Difficult to test ribbons with a one-residue model. I will try to guess: 1. I imagine this is not the case, but you have a call to "Jmol.jss" (two S letters) 2. The jmolRadioGroup should take an array of arrays. Maybe it works with what you have, but better make all elements array

[Jmol-users] Jmol radio ui works, but no result

2010-05-23 Thread Jay Vyas
Hi Guys : I have an application that uses JMol, but the radio controls wont trigger any events. Im puzzled because : 1) I dont see any errors in the java script console. 2) The JMol Console is clearly registering the events associated with the buttons... But alas, there is no result in the