Jmol/Useful one-liners

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
(Examples)
Line 52: Line 52:
===Expanding selection to whole residue/groups===
===Expanding selection to whole residue/groups===
select within(group, selected)
select within(group, selected)
-
This expands the selection to include all atoms belonging to the same residues or groups than the currently selected atoms.
+
This expands the selection to include all atoms belonging to the same residues or groups than the currently selected atoms. [This command is available in the SAT in a perhaps unexpected spot: in the selections tab, in the select within distance box, the second button].
===Not yet categorized===
===Not yet categorized===
Line 59: Line 59:
<jmol><jmolButton><text>center visible</text><script>center visible</script></jmolButton></jmol>
<jmol><jmolButton><text>center visible</text><script>center visible</script></jmolButton></jmol>
-
This centers on all atoms that are visible, either explicitly or as part of a cartoon etc.
+
This centers on all atoms that are visible, either explicitly or as part of a cartoon etc. This is also available in the representation tab of the SAT.
model all
model all

Revision as of 17:49, 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