Jmol/Useful one-liners

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
(Examples)
(Examples)
Line 26: Line 26:
<jmol><jmolButton><text>zshade</text><script>set zshade on</script></jmolButton></jmol>
<jmol><jmolButton><text>zshade</text><script>set zshade on</script></jmolButton></jmol>
-
This fades the scene (to white if the background is white, to black if the background is black) for atoms further away from the viewer, giving a better 3D feel even when the model is not moving. This is now integrated into the SAT.
+
This fades the scene (to white if the background is white, to black if the background is black) for atoms further away from the viewer, giving a better 3D feel even when the model is not moving. This command is now available via a control in the SAT.
set zshadepower 1
set zshadepower 1

Revision as of 13:20, 29 October 2020

This is a collection of useful one-liners in Jmol. While the Scene authoring tools give you access to a lot of Jmol's functionality, they don't cover the entire scripting language. However, the SAT contains an input box for entering Jmol commands directly. This page collects commands that might be entered into that textbox to achieve effects not otherwise possible. Viewers of Proteopedia pages might find occasional use of these one-liners as well. To enter them, you first have to right-click on the Jmol window and open a console. For more complex Jmol commands, see Jmol/Using the console.


Examples

Drag the structure with the mouse to rotate

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis, Angel Herraez

Personal tools