Let's imagine that i have an amino-acid. So I want to create a script for showing its structure. I create script and everything is ok. But then I want to make a button for showing/hiding hydrogens. I mean, you push it - atoms on, push it again - off, then again - on, etc. Is there any posibility to do that? I tried to divide commands on and off with pause and then use 'loop' (so script could restart every time) but it doesn't work.
I'm talking about buttons on the page in the Internet. of course (JMol applet)
Absolutely. Look under the scenes at
http://chemapps.stolaf.edu/jmol/jsmol/simple2.htm perhaps you can copy
that idea.
On Thu, Mar 10, 2016 at 4:27 PM, Zaira mercuciomr@users.sf.net wrote:
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
Related
Feature Requests:
#232Thank you for the answer! It worked.
But now I have one more question. I have an amino-acid and I want to label some atoms. So I place two buttons: 'on' (label on) and 'off'(label off). Firstly, labels are shown because of my script (labels.spt with my labels for atoms) that starts with the loading of the page. After pushing 'off' labels hide. And here comes a problem. When I push 'on' again, an applet shows labels from pdb file, which differ from mine in script. I tried 'script labels.spt label on' but it doesn't work.
I found the solution.
Thak you for help much!