User:Jaime Prilusky/Test/saveScene

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
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 theis scene 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
<!-- 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" -->

Revision as of 09:40, 29 July 2022

Drag the structure with the mouse to rotate

References

Proteopedia Page Contributors and Editors (what is this?)

Jaime Prilusky

Personal tools