Bob wrote:
hbonds off
should work, provided you have selected all atoms involved in those
hbonds.
OK, I rearranged the order of my statements added an hbonds on and it
seems to be working now.
David, please define "switch to another motif" in terms of Jmol script
commands.
It's not really relevant now, but here is an example from my test
page - two radio buttons, scripted like this:
<tr><td class="button">
<input type="radio" name="closeup" value="0" onclick="jmolScript
('echo; hbonds off; select atomno=2248, atomno=2301; hbonds on;
connect hbond; restrict (145,146,147,148,149) AND protein AND NOT
(*.H???, *.?H???); centre selected; wireframe 0.3; zoom (selected) 0;
define labVar selected; select
(*145.CA,*146.CA,*147.CA,*148.CA,*149.CA); label %n-%r; define cagp
selected; restrict labVar;'); carryOver();">
</td>
<td class="stripe">Motif 1 (145,146,147,148,149)</td></tr>
<tr><td class="button">
<input type="radio" name="closeup" value="1" onclick="jmolScript
('echo; hbonds off; select atomno=2288, atomno=2340; connect hbond;
select atomno=2288, atomno=2359; connect hbond; hbonds on; restrict
(148,149,150,151,152) AND protein AND NOT (*.H???, *.?H???); centre
selected; wireframe 0.3; zoom (selected) 0; define labVar selected;
select (*148.CA,*149.CA,*150.CA,*151.CA,*152.CA); label %n-%r; define
cagp selected; restrict labVar; ') ; carryOver();">
</td>
<td class="nostripe">Motif 2 (148,149,150,151,152)</td></tr>
(carryOver() is my own function to check the state of certain
checkboxes that switch labels and sidechains on and off and do the
right thing to the new one.)
By switching between motifs just invokes the script for another button.
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
http://motif.gla.ac.uk/
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