The unsigned applet cannot save any files. Don't worry - there are several
MUCH easier ways. Here are two ways that you can access atom colors:
[JavaScript]
var jmolEvaluate("{*}.label('%[atomIndex] %[color]')")
[/JavaScript]
If you really are coloring them. Or perhaps they are just selected:
[JavaScript]
var redAtoms = jmolEvaluate("script('select color=red;print
{selected}.label()')")
[/JavaScript]
Then you do whatever you need to do in the client, not the server.
On Tue, Mar 22, 2011 at 4:47 PM, Yingjie Lin <[email protected]> wrote:
> Hi Jmol users,
>
> I am developing a web server with Jmol Applet (Jmol version 12.0.22). I
> need the user to select a set of atoms by, say, coloring them red. When the
> user is done selecting and is ready to move on to the next page, I would
> like my Python script to know which atoms are selected.
>
> I think this could be done by saving the Jmol display to a file, using
> "write STATE filename.spt". This works perfectly in the Jmol program
> itself, but I couldn't get it to work in Jmol Applet. In Jmol Applet, there
> is no error message, but no file is written, and the content of the state
> file is printed to the Console.
>
> Does anyone know what I am missing here?
>
> Thank you.
>
> Yingjie
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users