User:Jaime Prilusky/Test/saveScene: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Your Heading Here (maybe something like 'Structure')== | ==Your Heading Here (maybe something like 'Structure')== | ||
<StructureSection load='' size='340' side='right' caption='' scene=''> | <StructureSection load='' size='340' side='right' caption='' scene=''> | ||
This is the result of dropping the file 1pov-nohet-distance.spt on SAT's Jmol applet, then running on Jmol Console ''set defaultLoadFilter "*.CA;biomolecule 1;bmchains;/=2"'', and saving the scene. | |||
This almost works. Jmol state has two places with 'set defaultLoadFilter': one inside function _setFileState, where it is set to empty, and another in function _setParameterState, where it gets the value we assign from SAT's console. Problem is that when loading a scene, Jmol executes _setFileState (loads the file with an empty loadFilter) and then _setParameterState, where the defaultLoadFilter has no effect. | |||
set <scene name='91/918478/1pov/2'>defaultLoadFilter</scene> "*.CA;biomolecule 1;bmchains;/=2" | For the scene below I modified by hand the script, server side, setting the desired value to 'set defaultLoadFilter' inside function _setFileState | ||
set <scene name='91/918478/1pov/2'>set defaultLoadFilter</scene> "*.CA;biomolecule 1;bmchains;/=2" | |||
</StructureSection> | </StructureSection> | ||
== References == | == References == | ||
<references/> | <references/> |