User:Jaime Prilusky/Test/saveScene: Difference between revisions

From Proteopedia
Jump to navigation Jump to search
Jaime Prilusky (talk | contribs)
No edit summary
Jaime Prilusky (talk | contribs)
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Your Heading Here (maybe something like 'Structure')==
<StructureSection load='' size='340' side='right' caption='' >
<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.
Effect of <scene name='91/918478/Effect_temp/1'>temperature</scene> during crystallization
 
<scene name='91/918478/Structure/4'>caption</scene>
 
Zoom on <scene name='91/918478/1ejg/1'>residue 33</scene>
 
<!-- scene='91/918478/1pov_nohet/4'> -->
*This is the result of dropping the file 1pov-nohet-distance.spt on SAT's Jmol applet, adding slab, and saving the scene.
 
*Example from uploaded file to Proteopedia: <scene name='91/918478/3iyv/1'>3iyv-half-heavyonly-rainbow.spt</scene>. Executed '''cpk on''' (thank you Angel), before saving scene, to display atoms.
 
* Load molecule <scene name='91/918478/3iyv/2'>3iyv</scene> FILTER *.CA;biomolecule 1;bmchains;/=2; spacefill 120%
 
<scene name='91/918478/1stp/2'>test 1stp</scene>
 
inserted the page id of other pages as &lt;!-- /471747/  /351028/ --> to enable editing scenes from those pages
<!--
 
/471747/ /963801/


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.
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.


For the scene below I modified by hand the script, server side, setting the desired value to 'set defaultLoadFilter' inside function _setFileState
I was unable to find a suitable Jmol.getPropertyAsArray() to get the value of the FILTER applied when loading the model. This can help on cases when dropping a spt file like 1pov-nohet-distance.spt
 
For this scene I modified by hand the script, server side, setting the desired value to 'set defaultLoadFilter' inside function _setFileState
-->
<!--
'''Newer option:''' <scene name='91/918478/1pov/3'>1pov wobble</scene>, made by dropping 1pov-nohet-distance.spt on SAT's Jmol applet and setting FILTER before saving. Then, value of FILTER is conserved.
-->
 


set <scene name='91/918478/1pov/2'>set defaultLoadFilter</scene> "*.CA;biomolecule 1;bmchains;/=2"
<!-- set <scene name='91/918478/1pov/2'>set defaultLoadFilter</scene> "*.CA;biomolecule 1;bmchains;/=2" -->


</StructureSection>
</StructureSection>
== References ==
== References ==
<references/>
<references/>

Latest revision as of 11:22, 5 June 2024


Effect of during crystallization

Zoom on

  • This is the result of dropping the file 1pov-nohet-distance.spt on SAT's Jmol applet, adding slab, and saving the scene.
  • Example from uploaded file to Proteopedia: . Executed cpk on (thank you Angel), before saving scene, to display atoms.
  • Load molecule FILTER *.CA;biomolecule 1;bmchains;/=2; spacefill 120%

inserted the page id of other pages as <!-- /471747/ /351028/ --> to enable editing scenes from those pages



Drag the structure with the mouse to rotate

ReferencesReferences