Tom, welcome! Be sure to let us know if you are using the application or 
the applet -- sometimes it makes a difference. The zap command is not 
necessary -- it's always executed first as part of the load command. But 
it must have been excuted. Everything looks fine there.

Try adding these first two lines to your script:

set debugScript
set loglevel 5


Then see if you can find the Java console. This is something you will 
use a lot. If using the application, it's under "Help"; if using the 
applet on Windows it's a little icon in the bottom right of the bar with 
the program icons. Looks like a cup of coffee, I think. Click on that 
and select "open console" - that's where all the useful messages are.

Load your script and check for errors.

Bob


Thomas Stout wrote:

>
> Hi All --
>
> I am /just /getting started with JMol, so I apologize if this is 
> blatently obvious, but I've run into a bit of strange  behavior with 
> scripting the applet.  Is there something particularly "special" about 
> the "load" command?  I am calling out to a script file to load several 
> PDB files, but for reasons I don't understand no other command seems 
> to be executed from the script file.
>
> For example, if I issue:
> script load.script;
>
> and "load.script" contains:
> zap;
> load FILES "molecule1.pdb" "molecule2.pdb";
> frame ALL;
> center *;
>
> then, mysteriously, neither the "zap", the "frame" or the "center" 
> commands are executed, but the coordinates DO get loaded!   I find 
> this really surprising, since I would expect things to be executed in 
> order (or error-out).....
>
> Any clues for the clue-less (me)? 
> Thanks!
> -Tom
>
> PS - I'm using version 11.4.0
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>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



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to