Thanks Angel and Bob,
That works well provided the state is generated from a real live web
server version of the original Jmol page and then reloaded on it.
When I tried to create the state from a Dreamweaver version of the
site the base paths were incorrect for the ultimate web server location.
# Jmol state version 11.4.4 2007-12-20 06:37;
# fullName = "jmolApplet0[343951889313757]";
# documentBase = "file:/Users/ngreeves/Sites/external/JmolPopup.htm";
# codeBase = "file:/Users/ngreeves/Sites/external/";
So this seems to be a limitation. The files must be in the final
location for the state to work in the future and if the site was
renamed or moved all the base references would have to be changed
manually.
Is there a way for state to generate relative paths? e.g. codebase=
"." or something similar
All the best
Nick
--
3D Organic Animations http://www.chemtube3d.com
Tel: +44 (0)151-794-3506 (3500 secretary)
4. Save/load state command (Nick Greeves)
5. Re: Save/load state command ( Angel Herr?ez )
9. Re: Save/load state command (Bob Hanson)
----------------------------------------------------------------------
---------------
Message: 4
Date: Mon, 14 Jul 2008 21:03:03 +0100
From: Nick Greeves <[EMAIL PROTECTED]>
Subject: [Jmol-users] Save/load state command
To: jmol-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
Is it possible to save a state and then reload that state from disk or
as part of a very long command?
save state, move molecule, restore state works just fine but I'd like
to be able to load such a state from scratch without having saved it
in the same session.
All the best
Nick
--
3D Organic Animations http://www.chemtube3d.com
Tel: +44 (0)151-794-3506 (3500 secretary)
Message: 5
Date: Tue, 15 Jul 2008 00:02:25 +0200
From: " Angel Herr?ez " <[EMAIL PROTECTED]>
Subject: Re: [Jmol-users] Save/load state command
To: jmol-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII
Hi Nick
Yes, you can save the state:
With the application you can save to disk. The command is
write state
Or, from the menu, File > Export > State
With the applet,
show state
then copy from the console and paste where you want.
Or from the pop-up menu, both app and applet:
Show > Current state
then copy from the console and paste where you want.
The saved state is "loaded" as any script, from file or from command.
Message: 9
Date: Tue, 15 Jul 2008 08:39:18 -0500
From: Bob Hanson <[EMAIL PROTECTED]>
Subject: Re: [Jmol-users] Save/load state command
To: jmol-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
use "write state" and then run it with the SCRIPT command.
The state consists of a set of functions that are run. It's also
possible to get just one of the functions of the state and save just
that piece.
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users