On Thu, Nov 13, 2008 at 6:22 PM, David Leader <[EMAIL PROTECTED]>wrote:
> Am starting working on my defined hydrogen bonds and have run into a
> minor snag. I have radio buttons that on clicking run a jmolScript
> that displays a motif and creates defined hydrogen bonds, the latter
> with a command of the sort:
>
> select atomno=2362, atomno=2440; connect hbond;
>
You can do that also as:
connect {atomno=2362} {atomno=2440} hbond
>
> However if I press another button to switch to another motif, if one
> of its atoms includes one of the previously created Hbonds (eg
> because it is adjacent and the atom makes more than one H-bond) then
> the Hbond hangs out into space in a way I wish to exclude. Is there a
> general way of deleting the previous hydrogen bonds when I click the
> new radio button? (I don't want to specify all the other possible
> connections and say delete). hbonds off doesn't work.
>
David, please define "switch to another motif" in terms of Jmol script
commands.
If you hide an atom, all its bonds get hidden as well. So I wonder why that
is still there.
hbonds off
should work, provided you have selected all atoms involved in those hbonds.
> David
>
> _______________________________________________________________
>
> Dr. David P. Leader, Faculty of Biomedical & Life Sciences,
> University of Glasgow, Glasgow G12 8QQ, UK
> Phone: +44 (0)141 330 5905
> http://doolittle.ibls.gla.ac.uk/leader
>
> The University of Glasgow, charity number SC004401
> _______________________________________________________________
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> 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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users