Rajarshi, The question is:
How important is it that you load the models one at a time? That is NOT possible in Jmol 10.9.85. There are a couple of ways around this: 1) Provided these are SDF files, a line containing just $$$$ separates different models. So you could: var m1 = "..."; jmolAppletLoadInline(400, m1, "spacefill on;"); var m2 = "..."; jmolLoadInline(m1 + "\n$$$$\n" + m2); or, if you want to be a little fancier and load the second model so that it just magically "appears" with the first model, you could use: jmolLoadInline("save orientation;" +"data \"model data\"" +m1+"\n$$$$\n"+m2 +" end \"model data\";" +"frame 0;" +"restore orientation;") The key here is that we are loading the first model AGAIN, this time with the second model. The data command allows you to bracket an inline load with script on both sides. In this case, we save and restore the orientation, and we use frame 0 to display both models. Maybe this isn't what you had in mind, but I'm using it as an illustration anyway. Bob Hanson > On Thu, 2006-10-26 at 19:38 +0200, Angel Herraez wrote: >> Timothy Driscoll answered to Rajarshi Guha: >> >> > > * Since Jmol cannot show multiple structures, I need to convert my >> SDF >> > > to PDB and concatenate it to the protein PDB. Is this correct? >> > > >> > as far as I know, yes - you will need to concatenate the structures >> > as independent MODEL (or perhaps FRAME) records. >> >> Wrong. Recent versions of Jmol CAN load multiple structures, so there >> is no need to concatenate files. Don't know if different formats will >> be trouble, but get a current prerelease version of Jmol and try. > > How would this be done? > > Currently I do: > > var mol1 = "..."; > jmolAppletLoadInline(400, m1, "spacefill on;"); > > To load the next one would I do > > var m2 = "..."; > jmolLoadInline(m2); > > Or is there some other approach? > > ------------------------------------------------------------------- > Rajarshi Guha <[EMAIL PROTECTED]> > GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE > ------------------------------------------------------------------- > Every nonzero finite dimensional inner product > space has an orthonormal basis. > It makes sense, when you don't think about it. > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users