Re: [Jmol-developers] scripts persisting after quit or exit

2017-04-19 Thread Robert Hanson
On Mon, Apr 17, 2017 at 3:01 PM, Angel Herráez wrote: > Hi Jeff > > Glad you are finding a solution. The lack of working of "!exit" straight > away is > disturbing. > exit to work the way you want must be the first command in a script. Otherwise it just acts on the

Re: [Jmol-developers] scripts persisting after quit or exit

2017-04-17 Thread Angel Herráez
Hi Jeff Glad you are finding a solution. The lack of working of "!exit" straight away is disturbing. "move" is considered an obsolete command and that may be the reason there is no method to interrupt it, but I agree that some things are not easy to reproduce with other commands, as you

Re: [Jmol-developers] scripts persisting after quit or exit

2017-04-17 Thread Jeff Sims
One more followup question: I have a move command: move 0 360 0 0 0 0 0 0 4, which does a full rotation around the y-axis over 4 seconds. How do I covert that to a moveto command? If I just move to the final coordinates, they are the same as the starting position, so it does not animate. > On

Re: [Jmol-developers] scripts persisting after quit or exit

2017-04-17 Thread Jeff Sims
Thank you, Angel. This is very helpful. I believe it solves my problem. After some testing, I can simplify the code by setting this one time, when the applet is created: set waitForMoveTo true then do the following before playing any scene: Jmol.script(jmolview1, ‘moveTo stop;’);

Re: [Jmol-developers] scripts persisting after quit or exit

2017-04-15 Thread Angel Herráez
Hi Jeff I've done a little testing. It seems that the problem is in the "move" commands, that cannot be interrupted. I found about "set waitForMoveTo" and "moveTo stop", so this seems to work: 1. Edit you spt files to change the move commands to equivalent moveTo commands. // move 0 0 0 80 0

Re: [Jmol-developers] scripts persisting after quit or exit

2017-04-11 Thread Angel Herráez
Hi Jeff That's a little strange. "exit" should do what you wish, at least according to the documentation (I have no direct experience) I suggest that you try this: add !exit as the first line of your script files or the first command of your inline scripts that are callled from buttons.

[Jmol-developers] scripts persisting after quit or exit

2017-04-11 Thread Jeff Sims
Hi all, I’m working on a molecular tutorial that allows you to navigate between multiple scenes, each with different scripted animation in JSmol. I’m finding that quickly jumping between scenes does not always stop scripted animations. I’ve tried calling each of these methods: exit, quit,