This page describes the installation and use of the pymolshortucs built by B.H.M. Mooers and described in Mooers (2020) 1.
The pymolshortcuts.py
script has a shortcut to timestamp filenames produced by PyMOL. To use this, the date time module needs to be installed. Because I have MacPorts
on my system, I’ll used the suggested MacPorts
installation instructions.
In a terminal window, type the following command:
sudo -H /opt/local/bin/python3.7 -m pip install --upgrade datetime
Upgrade pip
too.
sudo -H /opt/local/bin/python3.7 -m pip install --upgrade pip
pymolshortcuts-master.zip
file.pymolshortcuts-master
folder into the ~/pymol-work/1-scripts` directory..pymolrc
run ~/pymol-work/1-scripts/pymolshortcuts-master/pymolshortcuts.py
to the bottom of the file.Fetch 3OAC
AO
Success! The molecule has ambient occlusion lighting.
Follow the instructions on this site: PyMOL Script Writing with Code Templates.
bioSyntax
extension.pymolsnips-master.zip
file from the pymolsnips github repository.vscpymolsnips
folder and run the following command:mv pml.json ~/Library/Application\ Support/Code/User/snippets
test.pml
.ao
and the autocomplete should trigger to insert the ao
code.enter
to insert the code.Success! I can insert PyMOL code into documents I create/edit in VS Code.
Mooers, B.H.M. (2020). Shortcuts for faster image creation in PyMOL. Protein Sci 29: 268–276. ↩︎