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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to