Thanks, Mauricio....hmm. Like I said....

11.5.18 is better, but I don't know if it will solve that particular 
problem. If you get that crash again, I'd like to see the state script 
for the state just before you do the zap.

  zap model > 3

I should have pointed out that this only works if you have loaded a 
single file with multiple models, such as a PDB NMR file or an XYZ 
animation file. In all other cases the models are not numbered 1,2,3....

For multiple files, you want

  zap file > 3

But there is also a bug in 11.5.17 that makes the command report the 
wrong number of atoms deleted. That's fixed for 11.5.18.

The following works for me in 11.5.18:

###############

zap
for (var i = 1; i < 50; i = i + 1)
  load append "data/caffeine.xyz"
  select file = i
  translateselected [EMAIL PROTECTED], 0, 0}
  center {*}
  frame 0
  delay 0.1
end for
delay 1
for (var i = 50; i > 10; i = i - 1)
  zap file=i
  center {*}
  frame 0
  delay 0.1
end for
delay 1
zap file > 3
zap file < 3

###############

Bob

Mauricio Carrillo Tripp wrote:

>
>
> ---------- Forwarded message ----------
> From: *Mauricio Carrillo Tripp* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>
> Date: Mon, Mar 17, 2008 at 11:45 AM
> Subject: Jmol atom deletion
> To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> Hi Bob,
> your efforts are greatly appreciated. I just tested the new ZAP
> command on Jmol 11.5.17. When 8 models are loaded:
>
> ZAP model > 2
> pending
> 0 atoms deleted
> 7566 atoms selected
> Script completed
> Jmol script terminated
>
> doesn't seem to do anything,
>
> ZAP 8.1
> pending
>
> and never comes back...
>
>
>
> -- 
> 0 | Mauricio Carrillo Tripp, PhD
> / | Department of Molecular Biology, TPC6
> 0 | The Scripps Research Institute
> \ | 10550 North Torrey Pines Road
> 0 | La Jolla, California 92037
> / | [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 0 | http://www.scripps.edu/~trippm <http://www.scripps.edu/%7Etrippm>
>
> ** Aut tace aut loquere meliora silentio **
>
>
>
> -- 
> 0 | Mauricio Carrillo Tripp, PhD
> / | Department of Molecular Biology, TPC6
> 0 | The Scripps Research Institute
> \ | 10550 North Torrey Pines Road
> 0 | La Jolla, California 92037
> / | [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 0 | http://www.scripps.edu/~trippm <http://www.scripps.edu/%7Etrippm>
>
> ** Aut tace aut loquere meliora silentio **
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor 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



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to