Menu

#232 Restarting script

v10
closed
nobody
None
5
2019-04-27
2016-03-10
Zaira
No

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.

Related

Feature Requests: #232

Discussion

  • Zaira

    Zaira - 2016-03-10

    I'm talking about buttons on the page in the Internet. of course (JMol applet)

     
    • Bob Hanson

      Bob Hanson - 2016-03-11

      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:

      I'm talking about buttons on the page in the Internet. of course (JMol
      applet)


      Status: open
      Group: v10
      Created: Thu Mar 10, 2016 10:25 PM UTC by Zaira
      Last Updated: Thu Mar 10, 2016 10:25 PM UTC
      Owner: nobody

      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/jmol/feature-requests/232/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      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: #232

      • Zaira

        Zaira - 2016-03-11

        Thank 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.

         
  • Zaira

    Zaira - 2016-03-11

    I found the solution.
    Thak you for help much!

     
  • Angel Herraez

    Angel Herraez - 2019-04-27
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB