Jmol/Useful one-liners

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
(save orientation, select whole residues, frame all)
Line 44: Line 44:
Defines the currently selected atoms as "aoi". You can use this later in commands such as "select aoi" to select the atoms again.
Defines the currently selected atoms as "aoi". You can use this later in commands such as "select aoi" to select the atoms again.
-
view1 = script("show moveto")
+
save orientation view1
-
 
+
restore orientation view1
-
Saves the current orientation in the variable "view1". Later, you can go back to this view using:
+
-
 
+
-
script inline @view1
+
-
 
+
-
That is not necessary, given the native commands
+
-
save orientation someName
+
-
restore orientation someName
+
<jmol><jmolButton><text>save orientation view1</text><script>save orientation view1</script></jmolButton></jmol>
<jmol><jmolButton><text>save orientation view1</text><script>save orientation view1</script></jmolButton></jmol>
Line 60: Line 53:
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.
 +
 +
===Remember things===
===Not yet categorized===
===Not yet categorized===

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