Jump to content

Main Page

From PyMOL Wiki
Revision as of 21:24, 12 September 2016 by MichelleOttaviano (talk | contribs)
Welcome to the PyMOL Wiki!
The community-run support site for the PyMOL molecular viewer.
To request a new account email: accounts (@) sbgrid dot org
Quick Links
Tutorials Table of Contents Commands
Script Library Plugins FAQ
Gallery | Covers PyMOL Cheat Sheet (PDF) Getting Help
News & Updates
Official Release PyMOL v1.8.2 has been released on April 20, 2016.
New Script dssr_block is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
New Plugin LiSiCA is a new plugin for 2D and 3D ligand based virtual screening using a fast maximum clique algorithm.
Official Release PyMOL v1.8.0 has been released on Nov 18, 2015.
PyMOL Open-Source Fellowship Schrödinger is now accepting applications for the PyMOL Open-Source Fellowship program! Details on http://pymol.org/fellowship
Official Release PyMOL, AxPyMOL, and JyMOL v1.7.6 have all been released on May 4, 2015.
New Plugin PyANM is a new plugin for easier Anisotropic Network Model (ANM) building and visualising in PyMOL.
New Plugin Bondpack is a collection of PyMOL plugins for easy visualization of atomic bonds.
New Plugin MOLE 2.0 is a new plugin for rapid analysis of biomacromolecular channels in PyMOL.
3D using Geforce PyMOL can now be visualized in 3D using Nvidia GeForce video cards (series 400+) with 120Hz monitors and Nvidia 3D Vision, this was previously only possible with Quadro video cards.
Older News See Older News.
Did you know...
=Overview=

A simple script to walk over objects in the object menu panel.

The Code

import pymol
from pymol import cmd

UP, DOWN = -1, 1

in_focus = 0

def object_focus(direction):
    """
    A simple script that remaps the PgUp and PgDn keys to walk through
    objects in the object list.
    """

    global in_focus, UP, DOWN

    cmd.wizard()

    names = cmd.get_names("public_objects")

    in_focus += direction

    if in_focus<0:
        in_focus = 0
    if in_focus > len(names)-1:
        in_focus = len(names)-1

    cur_obj = names[in_focus]

    cmd.orient(cur_obj,animate=1)
    cmd.wizard("message", "Object: %s" % (cur_obj))


cmd.set_key("PgUp", object_focus, [UP])
cmd.set_key("PgDn", object_focus, [DOWN])
A Random PyMOL-generated Cover. See Covers.