On 10/19/2011 07:24 PM, Rolf Huehne wrote:
> On 10/19/2011 07:06 PM, Angel Herráez wrote:
>> I have little if any experience with evaluate, but that doesn't sound
>> expected. The issue (why Bob put it there) is that if the user or a
>> script have selected part of the model, only that part will be saved
>> unless you first select all.
>>
>> So, maybe as an alternative,
>>
>> jmolScript('select *;')
>> document.getElementById("data").value = jmolEvaluate('write("PDB")')
>>
> But then timing will very likely become a problem. So it should rather
> be "jmolScriptWait('select *;')" or a more complicated solution to make
> sure the selection is completed before the coordinates are written.
>
Or maybe as another alternative define a Jmol function that does
everything needed:
1) store the current selection
2) select everything
3) store the coordinates in a variable
4) restore the selection
5) provide the coordinates as return value (just print the variable?)
Regards,
Rolf
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users