I think it's a bug in Jmol. That should work. What it's expecting is "1.1" -- the Jmol model number; but that should not be necessary. I'll check into it. In any case, what you can do is
define ~contarget (selected and */1) (the old RasMol syntax) On Tue, Jun 30, 2009 at 5:47 PM, Dan Connolly <conno...@w3.org> wrote: > Hi, > > I'm trying to write a batch program that reproduces selection > of contact points from First Glance in Jmol > http://molvis.sdsc.edu/fgij/notes.htm?mol=1K5N#hbonds > > The First Glace script.js file uses the Jmol "define" mechanism, > but I can't reproduce its results. > I'm struggling to understand how "define" works. > > I isolated the problem to this small script: > > select :c; define ~contarget (selected and model=1); select none; > select ~contarget; spacefill > > PDB provides an interactive script field on pages such as this one: > http://www.rcsb.org/pdb/explore/jmol.do?structureId=1K5N&bionumber=1# > > If you go there and clear things off a la: > > select all; cartoon off; spacefill off; wireframe off > > ... and then pasted the above script that uses define, > the view remains blank; nothing gets spacefill'd. > > Would somebody please help me understand what's going on? > > Hmm... maybe I found my own answer... > if I take the "and model=1" stuff out, it works. > Now I wonder why the First Glance in Jmol scripts work. > > -- > Dan Connolly, W3C http://www.w3.org/People/Connolly/ > gpg D3C2 887B 0F92 6005 C541 0875 0F91 96DE 6E52 C29E > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- Robert M. Hanson Professor of Chemistry St. Olaf College 1520 St. Olaf Ave. Northfield, MN 55057 http://www.stolaf.edu/people/hansonr phone: 507-786-3107 If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users