Jmol/Useful one-liners

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
This is a collection of [[Jmol/Useful one-liners|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]].
This is a collection of [[Jmol/Useful one-liners|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]].
-
hover "%n%R %a"; font hover 30
 
- 
-
When spinning is off and you hover over an atom, you get some information. This one-liner increases the font size and condeses the information displayed, showing the one-letter residue name, the residue number and the atom name.
 
==Examples==
==Examples==
<StructureSection load='1d66' size='340' side='right' caption='Caption for this structure' scene=''>
<StructureSection load='1d66' size='340' side='right' caption='Caption for this structure' scene=''>
 +
 +
hover "%n%R %a"; font hover 30
 +
 +
<jmol><jmolButton><text>hover</text><script>hover "%n%R %a"; font hover 30</script></jmolButton></jmol>
 +
When spinning is off and you hover over an atom, you get some information. This one-liner increases the font size and condeses the information displayed, showing the one-letter residue name, the residue number and the atom name.
</StructureSection>
</StructureSection>

Revision as of 11:10, 28 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

Caption for this structure

Drag the structure with the mouse to rotate

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis, Angel Herraez

Personal tools